> 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/kdosukyan/connect-your-source-code/connect-azure-devops-self-managed-server.md).

# Azure DevOps Self-Managed Serverを接続する

Aikido を使用すると、Azure DevOps Self-Managed サーバーインスタンスを接続してコードを保護できます。Azure DevOps Self-Managed プロジェクトを Aikido に接続するには、以下の手順に従ってください。

1 つ以上のリポジトリを持つ各 Azure Project は、1 つの Aikido ワークスペースに対応することに注意してください。

### 認証するには、Microsoft / Office 365 または Google を選択します <a href="#select-microsoft--office-365-or-google-to-authenticate" id="select-microsoft--office-365-or-google-to-authenticate"></a>

**手順 1。** Azure DevOps プロジェクトを接続するには、まず Microsoft / Office 365 または Google を介して認証し、Aikido にユーザーを作成する必要があります。 [サインアップ画面](https://app.aikido.dev/login)、続行するには 'Microsoft / Google' をクリックします。

> 組織の Microsoft Entra 設定によっては、Aikido アプリケーションを承認するために IT 管理者の承認が必要になる場合があります。 [承認プロセスの詳細については、Azure ドキュメントを確認してください。](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal)

**手順 2。** Google/Microsoft で認証が完了したら、ページ上の 'Connect Azure' を選択します。

<figure><img src="/files/7969fc373134cd909d2a905f6236ee183e8fb786" alt=""><figcaption><p>Azure DevOps サーバーに接続するには、Self-Managed オプションを選択します。</p></figcaption></figure>

**手順 3。** 任意の Azure DevOps プロジェクトを接続するための詳細を入力します。必要な情報の取得方法は次のセクションで説明します。

<figure><img src="/files/f82d9badb7cfdb801c500a67b521b3555e8f2de6" alt=""><figcaption></figcaption></figure>

### コレクション名を入力してください <a href="#insert-your-organizations-name" id="insert-your-organizations-name"></a>

接続したい Azure DevOps のコレクション/組織名を入力してください。この名前は、Self-Managed サーバーインスタンスに移動し、左側のナビゲーションからコピーして確認できます。

### Personal Access Token を作成する <a href="#create-a-personal-access-token" id="create-a-personal-access-token"></a>

{% hint style="info" %}
トークン所有者は、少なくとも Project Collection Administrator アクセス権を持っている必要があります。
{% endhint %}

次に、必要なリソースへのアクセス権を付与するために、Personal Access Token を作成する必要があります。

1. Azure DevOps Self-Managed インスタンスにログインします
2. 右上隅でユーザーのアバターをクリックします。次の画像のようなドロップダウンが表示されます:\
   \
   ![](/files/54d50bef90ac4bbd2a66f268626873bb55937143)
3. 次を選択します **セキュリティ** ドロップダウン内で。
4. 次に、左側で選択します **Personal Access Token**
5. 次をクリックします **+New Token** 右上隅のボタン
6. トークン名を入力します。例: 'Aikido Security Access Token'
7. 前の手順で入力したものと同じ組織/コレクションを選択してください
8. 有効期限は必ず将来の日付を選択してください。最大でも 1 年です。
9. 次に、以下のスコープを選択する必要があります（'show all scopes' をクリックしてください）:
   * **Code: Read**
   * **Member Entitlement Management: Read**
   * **Project and Team: Read**
   * **User Profile: Read**
10. 次をクリックします： **作成** 下部のボタン。

![カスタム定義のコード読み取り権限を持つ Azure DevOps 個人用アクセス トークンを編集しています。](/files/e0ca6afc984b755b251908582d4023989616e1b1)

11. 次の画面に表示されるトークンをコピーし、入力欄に入力してください。

**重要**：続行するとトークン値は表示できなくなります。先に必ずコピーしてください。

Aikido は現在、Azure DevOps インスタンスへの接続を確認しています。接続に失敗した場合は、入力した組織名と Personal Access Token を再確認してください。

### 保護したいプロジェクトとリポジトリを選択します <a href="#select-the-project-and-repos-youd-like-to-secure" id="select-the-project-and-repos-youd-like-to-secure"></a>

次の画面で、どのプロジェクトから開始するかを選択できます。あとからいつでも、さらに多くのプロジェクトを Aikido に接続できます。

最後のステップで、監視したいすべてのリポジトリを選択します。

#### TFVC リポジトリに関する特記事項

Aikido は、Git と Team Foundation Version Control (TFVC) の両方のリポジトリとの統合をサポートしています。

* TFVC リポジトリでは、Aikido はシークレットスキャンを実行しません。
* デフォルトでは、Aikido は TFVC リポジトリの 'All Branches' をスキャンしようとします。これによりスキャン速度が遅くなる場合があります。 **実際にスキャンするブランチを選択することをお勧めします。** これは、リポジトリ詳細ページでブランチラベルをクリックすると変更できます。

<figure><img src="/files/f54378bd6f822d7afecdd92a699d00d389b96fec" alt=""><figcaption></figcaption></figure>


---

# 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/kdosukyan/connect-your-source-code/connect-azure-devops-self-managed-server.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.
