> 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/autofix-to/configure/autofix-for-azure-devops-with-personal-access-token.md).

# Personal Access Tokenを使ったAzure DevOps向けAutoFix

> Azure DevOps Autofix 統合のインストールが OAuth フローでうまくいかない場合は、Personal Access Token（PAT）を使うように設定することもできます。

> なお、統合を正しく機能させるには、組織内のすべてのプロジェクトに対して書き込み権限を持てる必要があります。これは通常、ワークスペース管理者に割り当てられている予約済みの権限です。

**まず**、Aikido の PAT 管理ページに移動します。これは [こちらで確認できます](https://app.aikido.dev/settings/integrations/azure-devops/autofix/personal-access-token).

**次に**、以下の手順に従って Azure DevOps で PAT を生成します。

## PAT の生成 <a href="#generating-a-pat" id="generating-a-pat"></a>

1. 「**ユーザー設定**' > '**個人用アクセストークン**」へ、ここに示されているヘッダーアイコンから移動します

   ![](/files/ffe534f5d30f1a21081b46fc36da183fc4da741f)

   または、ショートカットリンクの「**ここでアクセストークンを生成**」を Aikido の個人用アクセストークン管理ページで使用します。

   ![](/files/d09ceb418f516ce2225407c3936547220f63084f)
2. 最終的に、次のようなページになります

   ![](/files/6c7ea27260f6f369837771fc9d3c354d37e8dfe4)
3. Aikido ワークスペースと同じ組織が「**アクセス範囲**」ボタンから右上で選択されていることを確認してください
4. 「**新しいトークン**"
5. 次に、トークンに対して以下の権限を選択する必要があります: **コード（読み取りと書き込み）** および **Graph（読み取り）。**\
   表示されない場合は **Graph** スコープが表示されたら、下部の青いリンク「Show more scopes」をクリックする必要があります

   ![](/files/a1000748190bbc450ee4681e3fc334e0fcca41e1)
6. 有効期限は「カスタム」を使用し、1 年後に設定します。これは Azure DevOps でトークンの有効期間として許可される最大期間です。
7. 「**作成**」をクリックしてアクセストークンを作成します
8. 次の画面でトークンをコピーし、Aikido の個人用アクセストークン管理ページに入力します。


---

# 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/autofix-to/configure/autofix-for-azure-devops-with-personal-access-token.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.
