> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/plataforma/variables/azure-key-vault-vaults.md).

# Bóvedas de Azure Key Vault

Registre Azure Key Vault como bóveda de secretos de primera clase en PowerShell Universal para variables secretas y credenciales.

PowerShell Universal puede registrar Azure Key Vault como una bóveda de secretos de primera clase. Las bóvedas registradas se gestionan en el propio proceso, aparecen en los selectores de bóveda para variables secretas y credenciales, y se almacenan en `.universal/secretVaults.ps1`.

## Crear una bóveda

1. Vaya a **Administrar > Variables y secretos > Bóvedas** y seleccione **Crear**.
2. Introduzca un nombre de bóveda y su URI de Azure Key Vault, como `https://production.vault.azure.net/`.
3. Seleccione un método de autenticación y proporcione los valores necesarios.
4. Guarde la bóveda y selecciónela al crear una variable secreta o una credencial.

Los registros existentes de SecretManagement siguen disponibles, pero solo se muestran en la lista de la página Bóvedas. Utilice este flujo para los nuevos registros de Azure Key Vault.

## Métodos de autenticación

| Método                 | Configuración                                                                                                                                                                                                                               |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Predeterminado         | Utiliza `DefaultAzureCredential` del entorno del host.                                                                                                                                                                                      |
| Identidad administrada | Utiliza de forma predeterminada la identidad administrada asignada por el sistema. Proporcione un ID de cliente de identidad administrada para una identidad asignada por el usuario.                                                       |
| Secreto de cliente     | Proporcione el ID de inquilino de Entra, el ID de cliente de la aplicación y el nombre de una variable secreta de PSU que almacene el secreto de cliente de la aplicación. El valor del secreto no se almacena en el registro de la bóveda. |

## Usar PowerShell

Cree un registro que utilice la identidad administrada asignada por el sistema:

```powershell
New-PSUSecretVault -Name 'Production Key Vault' `
    -VaultUri 'https://production.vault.azure.net/' `
    -AuthenticationType ManagedIdentity
```

Cree un registro que utilice un registro de aplicación de Entra:

```powershell
New-PSUSecretVault -Name 'Customer Key Vault' `
    -VaultUri 'https://customer.vault.azure.net/' `
    -AuthenticationType ClientSecret `
    -TenantId '00000000-0000-0000-0000-000000000000' `
    -ClientId '11111111-1111-1111-1111-111111111111' `
    -ClientSecretVariable 'AzureKeyVaultClientSecret'
```

Utilice `Get-PSUSecretVault`, `Set-PSUSecretVault` y `Remove-PSUSecretVault` para gestionar los registros de forma remota. El valor al que hace referencia `ClientSecretVariable` debe ser una variable secreta de PSU.


---

# 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.devolutions.net/powershell-universal/es/plataforma/variables/azure-key-vault-vaults.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.
