> 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/comandos-de-powershell/new-psusecretvault.md).

# New-PSUSecretVault

Cree un registro de Azure Key Vault basado en modelo para usarlo con variables secretas y credenciales de PowerShell Universal.

## SINOPSIS

Crea un registro de bóveda de secretos.

## SINTAXIS

```powershell
New-PSUSecretVault [-Name] <String> [-Type AzureKeyVault] [-Description <String>] -VaultUri <String>
    [-AuthenticationType <Default | ManagedIdentity | ClientSecret>] [-TenantId <String>] [-ClientId <String>]
    [-ClientSecretVariable <String>] [-ManagedIdentityClientId <String>]
```

El cmdlet también admite los parámetros estándar de conexión de administración.

## DESCRIPCIÓN

Crea un registro de bóveda de secretos de PowerShell Universal basado en modelo. Los registros de Azure Key Vault se gestionan en el propio proceso y se pueden seleccionar como bóveda para variables secretas y credenciales.

Para la autenticación con secreto de cliente, `-ClientSecretVariable` es el nombre de una variable secreta de PSU que contiene el secreto de cliente de la aplicación de Entra ID. El valor del secreto no se escribe en la configuración.

## EJEMPLOS

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

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'
```

## PARÁMETROS

| Parámetro                                         | Descripción                                                                                                            |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `-Name`                                           | Nombre de la bóveda utilizado al seleccionar la bóveda para una variable o una credencial.                             |
| `-VaultUri`                                       | URI de Azure Key Vault, como `https://my-vault.vault.azure.net/`.                                                      |
| `-Type`                                           | Tipo de proveedor de bóveda; el valor admitido es `AzureKeyVault`.                                                     |
| `-AuthenticationType`                             | `Default`, `ManagedIdentity` o `ClientSecret`.                                                                         |
| `-ManagedIdentityClientId`                        | ID de cliente de la identidad administrada asignada por el usuario; omítalo para la identidad asignada por el sistema. |
| `-TenantId`, `-ClientId`, `-ClientSecretVariable` | Configuración de la aplicación de Entra ID para la autenticación con secreto de cliente.                               |

## SALIDAS

`PowerShellUniversal.Vault`

## ENLACES RELACIONADOS

* Get-PSUSecretVault
* Set-PSUSecretVault


---

# 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.devolutions.net/powershell-universal/es/comandos-de-powershell/new-psusecretvault.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.
