> 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> -VaultUri <String> [-Type <String>] [-Description <String>] [-AuthenticationType <VaultAuthenticationType>] [-TenantId <String>] [-ClientId <String>] [-ClientSecretVariable <String>] [-ManagedIdentityClientId <String>] [<ConnectionOptions>] [<CommonParameters>]
```

`<ConnectionOptions>`: `[-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]`.

## DESCRIPTION

Crée un enregistrement de coffre de secrets PowerShell Universal pris en charge par un modèle. Le type de fournisseur par défaut est `AzureKeyVault` ; les enregistrements Azure Key Vault sont traités dans le processus et peuvent être sélectionnés pour les variables secrètes et les identifiants. Pour l'authentification par secret client, `-ClientSecretVariable` nomme une variable secrète PSU qui contient le secret client Entra ID ; la valeur n'est pas écrite dans la configuration du coffre.

## 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 d'enregistrement de coffre obligatoire.                                                                      |
| `-VaultUri`                | URI Azure Key Vault obligatoire.                                                                                 |
| `-Type`                    | Type de fournisseur du coffre, `AzureKeyVault` par défaut.                                                       |
| `-Description`             | Description de l'enregistrement.                                                                                 |
| `-AuthenticationType`      | Mode d'authentification : `Default`, `ManagedIdentity` ou `ClientSecret`.                                        |
| `-TenantId`                | ID de locataire Entra ID pour l'authentification par secret client.                                              |
| `-ClientId`                | ID client de l'application Entra ID pour l'authentification par secret client.                                   |
| `-ClientSecretVariable`    | Nom de la variable PSU qui contient le secret client de l'application.                                           |
| `-ManagedIdentityClientId` | ID client de l'identité managée assignée à l'utilisateur ; omettez-le pour une identité assignée par le système. |
| `-ComputerName`            | URL ou nom d'hôte de l'API de gestion PSU (alias `-Uri`).                                                        |
| `-AppToken`                | Jeton d'application de l'API de gestion.                                                                         |
| `-Credential`              | Identifiants de l'API de gestion.                                                                                |
| `-UseDefaultCredentials`   | Utilise les identifiants Windows actuels.                                                                        |
| `-Integrated`              | Utilise le client de gestion dans le processus.                                                                  |
| `-TrustCertificate`        | Ignore les erreurs de validation du certificat.                                                                  |
| `-Cookies`                 | Réutilise les témoins d'authentification de la session.                                                          |

## SORTIES

`PowerShellUniversal.Vault`.

## LIENS CONNEXES

[Get-PSUSecretVault](/powershell-universal/fr/commandes-powershell/get-psusecretvault.md) · [Set-PSUSecretVault](/powershell-universal/fr/commandes-powershell/set-psusecretvault.md)

## PERMISSIONS

Le jeton d'accès requiert `platform.vaults/create` pour exécuter cette applet de commande à distance.


---

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