> 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-projects-to-aikido.md).

# Azure DevOpsプロジェクトを接続する

Aikido を使うと、Azure DevOps プロジェクトを接続してコードを保護できます。Azure DevOps プロジェクトを 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 DevOps' を選択してください。

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FRq2mqqxE9yc5cJ0Vd9Oa%2Fimage.png?alt=media&amp;token=a874a9b8-c789-4bb5-84be-9abe0c5457c9" alt=""><figcaption></figcaption></figure>

**手順 3.** お好みの Azure DevOps プロジェクトを接続するための詳細を入力してください。必要な情報の取得方法は、すぐ下で説明します。<br>

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FGVCfV3h3bFStAAyOmbRT%2Fimage.png?alt=media&amp;token=bf3903c8-7b7d-4e5c-b807-e5a789cf091e" alt=""><figcaption></figcaption></figure>

### 組織名を入力してください <a href="#insert-your-organizations-name" id="insert-your-organizations-name"></a>

接続したい Azure DevOps 組織の名前を入力してください。この名前は、 [https://dev.azure.com](https://dev.azure.com/) にアクセスし、左側のナビゲーションからコピーして確認できます。

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

{% hint style="info" %}
DevOps チームのメンバーとして Entra ID グループを使用している場合、このトークンを生成するユーザーに Entra 読み取り権限があることを確認してください。
{% endhint %}

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

* Azure DevOps アカウントにログインします
* 右上隅で、アバターの横にあるユーザー設定アイコンをクリックします。見た目は次のとおりです：

  ![アカウント管理オプション用の設定歯車が付いたユーザープロフィールアイコン。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-1a7d3d50a15bc9f2a63c718d2fdb779dc55b3eca%2Fucarecdn-8ac6922c-38e0-481b-a9e7-0be293fa315a.png?alt=media)
* 選択 **個人アクセストークン** ドロップダウンで。
* をクリックします **+ 新しいトークン** 左上隅のボタン
* トークン名を入力してください。例: 'Aikido Security Access Token'
* 前の手順で入力したものと同じ組織を選択してください
* 有効期限は将来の日付を選択してください。最大でも1年です。
* 次に、以下のスコープを選択する必要があります（「すべてのスコープを表示」をクリックしてください）：
  * **コード: 読み取り**
  * **メンバーのエンタイトルメント管理: 読み取り**
  * **プロジェクトとチーム: 読み取り**
  * **ユーザープロファイル: 読み取り**
* をクリックして **作成** 下部のボタン。

![カスタム定義のコード読み取り権限を持つ 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)

* 次の画面に表示されるトークンをコピーし、入力フィールドに入力してください。

**重要**：続行を押すと、トークンの値は表示できなくなります。先にコピーしたことを確認してください。

Aikido が Azure DevOps 組織への接続を確認します。接続に失敗した場合は、入力した組織名と個人用アクセス トークンが正しいかもう一度確認してください。

### 保護したいプロジェクトとリポジトリを選択してください <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-projects-to-aikido.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.
