> 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に接続」を選択してください。

![リポジトリ連携オプション：GitHub、Azure DevOps、GitLab、またはBitbucketに接続できます。](/files/2bcd4da65ac82106883496aedc86349d6f34542a)

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

![Aikidoのオンボーディング：Azure DevOpsの詳細を入力して、プロジェクトを認証・接続します。](/files/ec912bcb362813c91d25581c7bd034fe13beb28f)

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

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

### 個人アクセストークンを作成する <a href="#create-a-personal-access-token" id="create-a-personal-access-token"></a>

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

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

* Azure DevOpsアカウントにログインします
* 右上隅で、アバターの横にあるユーザー設定アイコンをクリックします。次のようなアイコンです：

  ![アカウント管理オプション用の設定ギアが付いたユーザープロフィールアイコン。](/files/8499adb963c44e85c9d486ecdbc180032293bac1)
* 選択 **個人用アクセストークン** ドロップダウン内で。
* の **＋新しいトークン** 左上隅のボタン
* トークン名を入力します。例: 'Aikido Security Access Token'
* 前の手順で入力したものと同じ組織を選択してください
* 有効期限は必ず将来の日付に設定してください。最大でも1年です。
* 次に、以下のスコープを選択する必要があります（「すべてのスコープを表示」をクリックしてください）:
  * **コード: 読み取り**
  * **メンバーエンタイトルメント管理: 読み取り**
  * **プロジェクトとチーム: 読み取り**
  * **ユーザープロファイル: 読み取り**
* をクリック **作成** 下部のボタン。

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

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

**重要**：［続行］を押すと、トークンの値はもう表示できなくなります。先に必ずコピーしてください。

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 リポジトリの「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-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.
