> 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). Agents can also search and read this documentation through its [MCP server](https://docs.realmjoin.com/~gitbook/mcp).

# Key Vault

RealmJoin LAPS によって生成されたローカル アカウントのパスワードを安全に保存するため、Azure Key Vault とアクセス ポリシーを作成します。

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

## Key Vault を作成

次の表は、Azure Key Vault の作成と RealmJoin LAPS のアクセス ポリシーの構成手順を示しています:

| タスク                                                                                                                                                                                                                                                    | 画像                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. 開く [Azure Portal](https://portal.azure.com)                                                                                                                                                                                                         |                                                                                                                                                                                                                                                           |
| 2. まず次から始めます **リソースを作成**                                                                                                                                                                                                                               | ![](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FIXKOOIliqE3Kxs5cd1N5%2Fimage.png?alt=media\&token=608b2c0e-6df6-4f43-9dcf-ddb1b8954eba)                                       |
| 3. に入力します **Key Vault** 検索欄に                                                                                                                                                                                                                           | ![](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FaCVEJXsrIA0QXik9U52T%2Fimage.png?alt=media\&token=0cd2bac4-e17d-4d5f-9612-4e074782c8c5)                                       |
| 4. 詳細ページで次をクリックします **作成**                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                           |
| <p>5. 基本タブで必須項目を入力してください。<br><br>KeyVault URL には、識別しやすい命名規則を使用してください。<br><br>例: <em>rj-\[tenant]-\[service]</em></p><p>注: これは DNS 名なので、グローバルで一意である必要があります<br><br>押してください <strong>次へ</strong>.</p>                                                      | ![](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FlZ1NGF0QA2tudFFLarFX%2Fimage.png?alt=media\&token=5fb9a2ed-e492-4840-bbca-157568b5901c)                                       |
| <p>6. アクセス構成<br><br>次を選択してください <strong>Vault アクセス ポリシー</strong> を権限モデルとして。</p>                                                                                                                                                                         | <img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2F3Uw8zlepxTFlZ1IMVaL8%2Fimage.png?alt=media&amp;token=4313ba65-f0b5-4658-a9b1-9b5e16d55209" alt="" data-size="original"> |
| <p>7. RealmJoin 用のアクセス ポリシーを作成します<br><br>押してください <em><strong>作成</strong></em> そして選択してください <strong>キー、シークレット、証明書の管理</strong> をテンプレートとして。<br><br>さらに追加 <em><strong>すべて選択</strong></em> を <strong>暗号化操作。</strong><br><br>押してください <strong>次へ</strong>.</p> | <img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fr5bOENNN6X97UeR9GKPf%2Fimage.png?alt=media&amp;token=72df2f9e-432d-4860-87e9-81b3ad52b96e" alt="" data-size="original"> |
| <p>8. 「RealmJoin」をプリンシパルとして追加します<br><br>押してください <strong>次へ</strong>.</p>                                                                                                                                                                               |                                                                                                                                                                                                                                                           |
| 9. クリックしてください **作成**                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                           |
| 10. 設定と構成を確認して、クリックしてください **確認 + 作成**                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                           |
| 11. デプロイが正常に完了するまでお待ちください                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                           |
| 12. クリックしてください **リソースに移動**                                                                                                                                                                                                                             |                                                                                                                                                                                                                                                           |
| 13. 最後に、移動し **概要** 共有してください **DNS 名** を [RealmJoin Support](mailto:support@realmjoin.com)                                                                                                                                                              | ![](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FbZ6vZZXjMNHfwlumh8HQ%2Fimage.png?alt=media\&token=00c4b87a-63c7-4019-bc20-4fcf2316e46a)                                       |

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

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

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

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

![](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FcCIa696ogL29y9hJ9F1r%2Fimage.png?alt=media\&token=81ee6a2e-368a-4590-aaba-e3c64f6e25b7)

![](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FdDif4wpuLTvhjkLSTbae%2Fimage.png?alt=media\&token=51e97aca-983d-4498-aeaa-c3e53fc03e8a)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/ja/realmjoin-agent/realmjoin-client/local-admin-password-solution-laps/keyvault.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
