> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/sonono/private-registries/azure-devops-artifacts.md).

# Azure DevOps Artifacts

Azure DevOps Artifacts を中継として設定し、Aikido のレジストリプロキシ経由でレジストリトラフィックをルーティングします。Artifacts は公開レジストリではなく Aikido からパッケージを取得するため、チームがインストールするすべてのパッケージはマルウェア、年齢制限、既知の脆弱性のチェックを受けます。

{% hint style="warning" %}
Azure DevOps Artifacts がカスタムの上流ソースをサポートしているのは **NPM**.
{% endhint %}

{% stepper %}
{% step %}

### Aikido のプロキシ URL を取得する

次へ移動 [設定 > レジストリプロキシ](https://app.aikido.dev/issues/fix/extended-lifecycle-support/setup-instructions)、次を選択します **NPM**を対象としており、上流プロキシ URL をコピーします。

<figure><img src="/files/5d6549f477bbae991fd832fa32087095797656d5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Aikido を上流ソースとして追加する

1. Azure DevOps プロジェクトで、 **Artifacts** に移動して、フィードを開きます。
2. をクリック **フィードの設定** （歯車アイコン）。
3. 次へ移動します： **上流ソース** タブを開き、 **上流を追加**.
4. 選択 **公開ソース** をソースの種類として
5. 設定を入力します：
   * **公開ソース**: `カスタム レジストリ`
   * **公開ソース URL**：手順 1 で取得した Aikido プロキシ URL を貼り付けます
   * **パッケージの種類**: `npm`
   * **上流ソース名**: `aikido`
6. 入力してください `@aikidosec/mcp` の **検証** フィールドに入力し、 **検証する** をクリックして接続が機能していることを確認します。
7. をクリック **検証する**、その後 **追加**.
8. をクリック **保存**
   {% endstep %}

{% step %}

### 既定の npm 上流ソースを削除する

すべての npm トラフィックが公開レジストリに直接ではなく Aikido 経由になるようにするには：

1. 同じ **上流ソース** タブで、既存の `npmjs` 上流ソースを見つけます。
2. 横の削除アイコンをクリックし、削除を確認します。
   {% endstep %}

{% step %}

### Azure Artifacts を使用するよう開発者のマシンを設定する

各開発者の npm クライアントを Artifacts フィードに向けます。正確な手順は Microsoft のドキュメントを参照してください：

[開発者としてフィードに接続する（npm）](https://learn.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc)
{% endstep %}

{% step %}

### （任意）Device Protection で公開レジストリをブロックする

Artifacts を導入しても、開発者は npm を公開レジストリに直接向けることで回避できます。すべてのトラフィックがプライベート レジストリを通過するように強制するには、Aikido Device Protection を導入してください。

{% content-ref url="/pages/7fa47c5a1ee5b3c664f0ab37ca9a23372513ddeb" %}
[公開パッケージレジストリをブロックする](/docs/docs-ja/aikido-debaisu/using-aikido-endpoint/block-public-package-registries.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/sonono/private-registries/azure-devops-artifacts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
