> 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/azure-virtual-machine-scanning-setup.md).

# Azure 仮想マシンスキャンのセットアップ

{% hint style="info" %}
この機能は以下で利用できます **Pro** および **Advanced** プランのみ。 [お問い合わせ](https://www.aikido.dev/contact) 詳細はこちら。
{% endhint %}

### なぜ仮想マシンをスキャンする必要があるのですか？ <a href="#why-should-i-scan-my-virtual-machines" id="why-should-i-scan-my-virtual-machines"></a>

仮想マシンのスキャンにより、Aikido は仮想マシンのハードドライブをスキャンし、脆弱なパッケージ、古いランタイム、リスクの高いライセンスを検出できます。

### はじめに <a href="#getting-started" id="getting-started"></a>

Azure 上で仮想マシンのスキャンを有効にするには、まず Azure Cloud を Aikido に接続します。これには、以下に記載された手順に従ってください。 [この記事](/docs/docs-ja/kuraudosukyan/connect-your-cloud/azure/connect-azure-cloud-account-to-aikido.md).

クラウドを接続すると、詳細ページに「Virtual Machines」というタブが表示されます。

![セキュリティおよびコンプライアンスチェックのために仮想マシンのスキャンを有効化するよう促す Azure ダッシュボード。](/files/eca7492f933ed355af64df5d31cf64ebf59d600c)

「Set Up VM Scanning」をクリックすると、次のページに移動します。

![Application ID の入力欄を含む Azure VM スキャンのセットアップ手順。](/files/45080e8cb9157e11e9e3bc80580e1bfe0f365491)

セットアップウィザードが、Aikido 専用の API シークレットを使って Azure Portal 内に新しい App Registration を作成する手順を案内します。

API シークレットは、Aikido がリソースをスキャンするために必要な API リクエストを実行するために使用されます。シークレットの有効期限が近づくと、Aikido からメールで通知されます。

App Registration には必要最小限の権限のみが付与されます。これにより、Aikido はリソースを意図せず変更するリスクなしにセキュリティチェックを実行できます。

「save」をクリックすると、Aikido はすぐにアカウント内のすべての仮想マシンの検出を開始し、それらをスキャンします。

### VM のグループ化

スキャン効率を最適化するため、Aikido は特定の Azure VM をグループ化し、各グループから 1 つのインスタンスのみをスキャンします。グループ化は次のように機能します。

* **仮想マシン スケール セット (VMSS)**: 同じ VMSS に属するすべての VM は、Aikido では 1 つの VM グループとして表示されます。VM グループ名は VMSS の識別子と一致します。
* **グループ化なし**: VMSS に属していない VM は単独の VM として扱われ、個別にスキャンされます。


---

# 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/azure-virtual-machine-scanning-setup.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.
