> 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 Portal**](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)

ロールの割り当てタブに移動し、次をクリックします **「追加」**&#x3092;クリックし、その後 **「ロールの割り当てを追加」**.

![ロールの割り当てを追加し、クラシック管理者を管理するための Azure ポータル画面。](/files/e2a074889b07e04ca2552fb36c3d3e2eaeca5c0a)

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

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

次の **"アクセス権を割り当てる**" の既定値。

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

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

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

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

次のロールについて、ロールの割り当て手順を繰り返します **"Disk Snapshot Contributor"**.

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


---

# 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.
