> 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サーバーを接続する

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

1つ以上のリポジトリを持つ各Azureプロジェクトは、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で認証したら、ページで「Azure に接続」を選択してください。

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FZCti3EvBQlT1EkwLgLED%2Fimage.png?alt=media&amp;token=595125e8-349e-4de6-bf04-fe7c2a8de70b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FUY0j9NMyB3QgymEJQf3J%2Fimage.png?alt=media&amp;token=ce5f2402-45a4-4757-8ff3-d58a7a611a22" 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. 右上隅でユーザーのアバターをクリックします。次の画像のようなドロップダウンが表示されます。\
   \
   ![](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-4e40ab47ba3cd8730ab5f198cb52de92c89770b2%2Fimage.png?alt=media)
3. 選択 **セキュリティ** ドロップダウンで。
4. 次に、左側で選択します **個人アクセストークン**
5. をクリックします **+ 新しいトークン** 右上隅のボタン
6. トークン名を入力してください。例: 'Aikido Security Access Token'
7. 前の手順で入力したものと同じ組織/コレクションを選択してください
8. 有効期限は将来の日付を選択してください。最大でも1年です。
9. 次に、以下のスコープを選択する必要があります（「すべてのスコープを表示」をクリックしてください）：
   * **コード: 読み取り**
   * **メンバーのエンタイトルメント管理: 読み取り**
   * **プロジェクトとチーム: 読み取り**
   * **ユーザープロファイル: 読み取り**
10. をクリックして **作成** 下部のボタン。

![カスタム定義のコード読み取り権限を持つ Azure DevOps Personal Access Token の編集。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-8f592ae4b0c29f78271e25fdd8fb18470239fb07%2Fucarecdn-06457a8f-e8dd-47b3-a629-8cb8cff94338.png?alt=media)

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リポジトリの「すべてのブランチ」をスキャンしようとします。これによりスキャン速度が遅くなる場合があります。 **スキャンする実際のブランチを選択することをおすすめします。** これは、リポジトリ詳細ページでブランチラベルをクリックして変更できます。

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-0adf53f4cd6f3b5429f1f29ecfcccf50d1d1082a%2Fimage.png?alt=media" 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.
