> 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/mashinsukyan/azure/setup-configuration-in-azure.md).

# Azure VM アクセス構成

## Entra ID アプリ登録

にログインして [**Azure ポータル**](https://portal.azure.com/) に移動します **Microsoft Entra ID サービス**.

をクリック **追加** を選択します **アプリ登録**

![Azure ポータル: Default Directory で新しいユーザー、グループ、エンタープライズ アプリ、またはアプリ登録を追加します。](/files/fc398f53a60aedc7a73d98d5fc299f564e06c579)

わかりやすい名前をアプリケーションに付けます。この名前は後で必要になります。

次の項目はそのままにします **サポートされるアカウントの種類** の既定値: **この組織ディレクトリのアカウントのみ**.

をクリック **登録**.

![「AikidoSecurity」という新しいアプリケーションをアカウント種類の選択付きで登録する Azure ポータル画面。](/files/e5c9c14a0893844d7cd980fa7b10bfb08ae723db)

作成したばかりのアプリケーションの詳細ページにリダイレクトされます。ここで次を見つけてコピーできます。 **アプリケーション (クライアント) ID** と **ディレクトリ (テナント) ID**

![AikidoSecurity アプリケーションのクライアント ID と重要な概要の詳細を表示する Azure ポータル。](/files/2c17e0be6bc194f1f836b54ba1cb99a313f4e6cb)

クライアント資格情報の項目で、「証明書またはシークレットの追加」をクリックします

![AikidoSecurity アプリの概要とクライアント資格情報の設定オプションを表示する Azure ポータル。](/files/cb0cf8546780e33ceeb75a282b4f8dcf18565793)

「新しいクライアント シークレット」ボタンをクリックし、シークレットの説明を入力して、有効期限を 2 年（730 日 / 24 か月）に設定します

![Azure AD でアプリケーション認証用の新しいクライアント シークレットを作成しています。](/files/f2a44b8987650f0d154b12f44ac862be03925802)

次をコピーします **シークレットの値**

![シークレットの説明、有効期限、コピーオプションを表示する Azure ポータルのクライアント シークレット管理画面。](/files/25748f615ff0045f6df084cc72c89f9493846f91)

Azure ポータルでアプリケーションの設定が完了したら、Public API 経由で Azure Cloud を追加するために必要な値はすべて揃いました。

## Azure RBAC のロール割り当て

サブスクリプションの詳細ページに移動します。次に、必要なロールへのアクセス権を付与する必要があります。

移動先： **サブスクリプション**で、仮想マシンに関連するサブスクリプションを見つけます

をクリック **「アクセス制御 (IAM)」**.

![サブスクリプション内のロールと権限を管理するための Azure IAM アクセス制御パネル。](/files/e221eb837f609fb90946c6dcf9543c3f5d111c13)

「ロールの割り当て」タブに移動し、 **「追加」**、次に **「ロールの割り当てを追加」**.

![ロール割り当ての追加とクラシック管理者の管理を行う Azure ポータルのインターフェース。](/files/e2a074889b07e04ca2552fb36c3d3e2eaeca5c0a)

で **「ロール」** タブで検索し、選択します **「VM Scanner Operator」** をクリックし **「次へ」**.

![Azure でディスク スナップショットのセキュリティ分析のために「VM Scanner Operator」ロールを割り当てています。](/files/ab5de294a0ce6e7b5dc78a4e4a5e0563a247708e)

次の項目はそのままにします **「アクセスの割り当て先**」の既定値。

をクリック **「メンバーの選択」**、作成したアプリ登録の名前（例:「AikidoSecurity」）を検索して選択します。

をクリック **「選択」**

をクリック **「確認 + 割り当て」** 2 回

![Access Control (IAM) 設定を使用して、Azure サブスクリプション内のメンバーにロールを割り当てています。](/files/1164b0539a24cf9bae20e161346115087825e510)

ロールの割り当てプロセスを次のロールについて繰り返します **「Disk Snapshot Contributor」**.

これでアプリ登録には、仮想マシンをスキャンするために必要なロールが付与されました。


---

# 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/mashinsukyan/azure/setup-configuration-in-azure.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.
