> 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. 次に、トークンに対して次の権限を選択する必要があります: **Code（読み取りと書き込み）** および **Graph（読み取り）。**\
   もし **Graph** スコープが表示されない場合は、下部の青いリンク「スコープをさらに表示」をクリックする必要があります

   ![](/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.
