> 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/pt/realmjoin-agent/realmjoin-client/local-admin-password-solution-laps/keyvault.md).

# Key Vault

As aplicações e serviços na nuvem usam chaves criptográficas e segredos para ajudar a manter a informação segura. O Azure Key Vault protege estas chaves e segredos. Quando usa o Key Vault, pode encriptar chaves de autenticação, chaves da Storage Account, chaves de encriptação de dados, ficheiros .pfx e palavras-passe, utilizando chaves protegidas por módulos de segurança de hardware.

## Criar Key Vault

A tabela seguinte mostra os passos para a criação do Azure Key Vault e a configuração da Política de Acesso para RealmJoin LAPS:

| Tarefa                                                                                                                                                                                                                                                                                                                                          | Imagem                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| 1. Abra [Azure Portal](https://portal.azure.com)                                                                                                                                                                                                                                                                                                |                                                                                         |
| 2. Comece com **Criar um recurso**                                                                                                                                                                                                                                                                                                              | ![](/files/c3f2c1aa4736e12275a09600479ca1c69b02c394)                                    |
| 3. Digite em **Key Vault** no campo de pesquisa                                                                                                                                                                                                                                                                                                 | ![](/files/554ab66c16ff409b8beadd3ca3d8987e2397a27f)                                    |
| 4. Na página de detalhes, clique em **Criar**                                                                                                                                                                                                                                                                                                   |                                                                                         |
| <p>5. Preencha os campos obrigatórios no separador Básico.<br><br>Certifique-se de usar um esquema de nomenclatura distinto para o URL do Key Vault.<br><br>Por exemplo: <em>rj-\[tenant]-\[service]</em></p><p>Nota: Este é um nome DNS, por isso é globalmente único<br><br>Prima <strong>Seguinte</strong>.</p>                              | ![](/files/97684c1ef7ae9ab99673754064d6f6f3ac555332)                                    |
| <p>6. Configuração de acesso<br><br>Escolha <strong>"Política de acesso do cofre"</strong> para o modelo de permissões.</p>                                                                                                                                                                                                                     | <img src="/files/d818f963262921128757d7c9015f2ac5fef46939" alt="" data-size="original"> |
| <p>7. Crie uma Política de Acesso para RealmJoin<br><br>Prima <em><strong>Criar</strong></em> e escolha <strong>"Gestão de chaves, segredos e certificados"</strong> como modelo.<br><br>Adicione ainda <em><strong>"Selecionar tudo"</strong></em> para <strong>Operações criptográficas.</strong><br><br>Prima <strong>Seguinte</strong>.</p> | <img src="/files/0fa0e671643ba3c65936db8b114f5de08ed3d4f6" alt="" data-size="original"> |
| <p>8. Adicione "RealmJoin" como principal<br><br>Prima <strong>Seguinte</strong>.</p>                                                                                                                                                                                                                                                           |                                                                                         |
| 9. Clique em **Criar**                                                                                                                                                                                                                                                                                                                          |                                                                                         |
| 10. Reveja as suas definições e configurações e clique em **Rever + Criar**                                                                                                                                                                                                                                                                     |                                                                                         |
| 11. Aguarde pela implementação bem-sucedida                                                                                                                                                                                                                                                                                                     |                                                                                         |
| 12. Clique em **Ir para o recurso**                                                                                                                                                                                                                                                                                                             |                                                                                         |
| 13. Por fim, vá para **Visão geral** e partilhe o **Nome DNS** com o suporte do RealmJoin [Suporte do RealmJoin](mailto:support@realmjoin.com)                                                                                                                                                                                                  | ![](/files/8f9d25bcbbac8d0bdfb661bd82c93273bd3f3627)                                    |

## Armazenamento de segredos do Key Vault

O RealmJoin não armazenará o segredo em qualquer armazenamento proprietário, mas sim criará um **segredo do Azure Key Vault** para o armazenar de forma segura e auditável. A API do Key Vault está documentada aqui:

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

A entrada no Key Vault será adicionada com o ID do dispositivo Azure como chave e o GUID em texto simples como valor do segredo. Veja o exemplo seguinte:

![](/files/1649dbccbcc9a039f5a1728cf8aede0dafc4be53)

![](/files/5fb40147b2f1a78458ddf99d5c432a79a3a305bf)


---

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