> 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/fr/commandes-powershell/new-psusecretvault.md).

# New-PSUSecretVault

Créer un enregistrement Azure Key Vault basé sur un modèle, à utiliser avec les variables secrètes et les identifiants de PowerShell Universal.

## SYNOPSIS

Crée un enregistrement de coffre de secrets.

## SYNTAXE

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

L'applet de commande prend également en charge les paramètres de connexion de gestion standard.

## DESCRIPTION

Crée un enregistrement de coffre de secrets PowerShell Universal basé sur un modèle. Les enregistrements Azure Key Vault sont traités en cours de processus et peuvent être sélectionnés comme coffre pour les variables secrètes et les identifiants.

Pour l'authentification par secret client, `-ClientSecretVariable` est le nom d'une variable secrète PSU qui contient le secret client de l'application Entra ID. La valeur du secret n'est pas écrite dans la configuration.

## EXEMPLES

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

## PARAMÈTRES

| Paramètre                                         | Description                                                                                                       |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `-Name`                                           | Nom du coffre utilisé lors de la sélection du coffre pour une variable ou un identifiant.                         |
| `-VaultUri`                                       | URI Azure Key Vault, par exemple `https://my-vault.vault.azure.net/`.                                             |
| `-Type`                                           | Type de fournisseur de coffre; la valeur prise en charge est `AzureKeyVault`.                                     |
| `-AuthenticationType`                             | `Default`, `ManagedIdentity` ou `ClientSecret`.                                                                   |
| `-ManagedIdentityClientId`                        | ID client de l'identité managée attribuée par l'utilisateur; omettez-le pour l'identité attribuée par le système. |
| `-TenantId`, `-ClientId`, `-ClientSecretVariable` | Paramètres de l'application Entra ID pour l'authentification par secret client.                                   |

## SORTIES

`PowerShellUniversal.Vault`

## LIENS CONNEXES

* 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/fr/commandes-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.
