> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/realmjoin-agent/realmjoin-client/local-admin-password-solution-laps/keyvault.md).

# Key Vault

クラウド アプリケーションとサービスは、情報を安全に保つために暗号化キーとシークレットを使用します。Azure Key Vault は、これらのキーとシークレットを保護します。Key Vault を使用すると、ハードウェア セキュリティ モジュールによって保護されたキーを使用して、認証キー、ストレージ アカウント キー、データ暗号化キー、.pfx ファイル、パスワードを暗号化できます。

## Key Vault を作成

以下の表は、Azure Key Vault の作成手順と RealmJoin LAPS 用の Access Policy の構成を示しています:

| タスク                                                                                                                                                                                                                                                                               | 画像                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| 1. 開く [Azure Portal](https://portal.azure.com)                                                                                                                                                                                                                                    |                                                                                         |
| 2. 次から始めます **リソースを作成**                                                                                                                                                                                                                                                            | ![](/files/f390602b6c2d4a3e52c1017ceb51e912eae89e1f)                                    |
| 3. 次を入力 **Key Vault** を検索フィールドに                                                                                                                                                                                                                                                   | ![](/files/ca88e600f249a6191b3e2e16ef1f578140290282)                                    |
| 4. 詳細ページで次をクリック **作成**                                                                                                                                                                                                                                                            |                                                                                         |
| <p>5. 基本タブで必要なフィールドを入力します。<br><br>Key Vault の URL には、必ず一意の命名規則を使用してください。<br><br>たとえば: <em>rj-\[tenant]-\[service]</em></p><p>注: これは DNS 名なので、グローバルで一意である必要があります<br><br>次を押します <strong>次へ</strong>.</p>                                                                            | ![](/files/17ba3edff625e9e78ccca42c1ab0b5dd5c8a8794)                                    |
| <p>6. アクセス構成<br><br>次を選択してください <strong>「Vault access policy」</strong> を権限モデルとして選択してください。</p>                                                                                                                                                                                      | <img src="/files/41d1688e713693d1d48bb1ee4cb59cfc70832d5a" alt="" data-size="original"> |
| <p>7. RealmJoin 用の Access Policy を作成<br><br>次を押します <em><strong>作成</strong></em> を選択し、 <strong>「Key, Secret & Certificate Management」</strong> をテンプレートとして使用します。<br><br>さらに追加します <em><strong>「すべて選択」</strong></em> を <strong>暗号化操作。</strong><br><br>次を押します <strong>次へ</strong>.</p> | <img src="/files/9da1fce59a049708701e6a5a53bea14c25e6e67d" alt="" data-size="original"> |
| <p>8. 「RealmJoin」をプリンシパルとして追加<br><br>次を押します <strong>次へ</strong>.</p>                                                                                                                                                                                                              |                                                                                         |
| 9. 次をクリック **作成**                                                                                                                                                                                                                                                                  |                                                                                         |
| 10. 設定と構成を確認し、次をクリック **確認 + 作成**                                                                                                                                                                                                                                                  |                                                                                         |
| 11. デプロイが成功するまで待機します                                                                                                                                                                                                                                                              |                                                                                         |
| 12. 次をクリック **リソースへ移動**                                                                                                                                                                                                                                                            |                                                                                         |
| 13. 最後に、次へ移動 **概要** を共有します **DNS 名** を [RealmJoin Support](mailto:support@realmjoin.com)                                                                                                                                                                                          | ![](/files/b448c4fb62e7f2168d56e4ec8887f889609c9fc8)                                    |

## Key Vault におけるシークレットの保存

RealmJoin はシークレットを独自のストレージには保存せず、代わりに **Azure Key Vault シークレット** を作成して、安全かつ監査可能な方法で保存します。Key Vault API のドキュメントはこちらです:

<https://docs.microsoft.com/en-us/rest/api/keyvault/secrets/set-secret/set-secret>

Key Vault のエントリには、Azure デバイス ID がキーとして、プレーンな GUID がシークレット値として追加されます。次の例を参照してください:

![](/files/36a04425d4ee02e9ce7db81be78f81d34d5630e8)

![](/files/8f4552a327da91865e1c00e28f818a49d8f8becb)


---

# 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://docs.realmjoin.com/ja/realmjoin-agent/realmjoin-client/local-admin-password-solution-laps/keyvault.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.
