> 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/set-psusecretvault.md).

# Set-PSUSecretVault

Mettre à jour un enregistrement Azure Key Vault basé sur un modèle dans PowerShell Universal.

## SYNOPSIS

Met à jour un enregistrement de coffre de secrets basé sur un modèle.

## SYNTAXE

```powershell
Set-PSUSecretVault -Id <Int64> [<VaultOptions>] [<ConnectionOptions>] [<CommonParameters>]
Set-PSUSecretVault -Name <String> [<VaultOptions>] [<ConnectionOptions>] [<CommonParameters>]
Set-PSUSecretVault -Vault <Vault> [<VaultOptions>] [<ConnectionOptions>] [<CommonParameters>]
```

`<VaultOptions>`: `[-NewName <String>] [-Type <String>] [-Description <String>] [-VaultUri <String>] [-AuthenticationType <VaultAuthenticationType>] [-TenantId <String>] [-ClientId <String>] [-ClientSecretVariable <String>] [-ManagedIdentityClientId <String>]`. `<ConnectionOptions>`: `[-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]`.

## DESCRIPTION

Met à jour un enregistrement de coffre par ID numérique, nom ou objet de coffre provenant du pipeline. Seules les propriétés fournies changent. `-Name` sélectionne le coffre existant ; utilisez `-NewName` pour le renommer (un nouveau nom vide est rejeté). Configurez l'URI du coffre et les paramètres d'authentification sans écrire les valeurs de secret client dans la configuration du coffre : indiquez plutôt le nom d'une variable secrète PSU.

## EXEMPLES

```powershell
Set-PSUSecretVault -Name 'Production Key Vault' `
    -VaultUri 'https://prod2.vault.azure.net/'

Get-PSUSecretVault -Name 'Production Key Vault' |
    Set-PSUSecretVault -AuthenticationType ManagedIdentity `
        -ManagedIdentityClientId '11111111-1111-1111-1111-111111111111'
```

## PARAMÈTRES

| Paramètre                  | Description                                                                    |
| -------------------------- | ------------------------------------------------------------------------------ |
| `-Id`                      | ID d'enregistrement numérique.                                                 |
| `-Name`                    | Nom d'enregistrement existant (pas le nouveau nom).                            |
| `-Vault`                   | Objet de coffre ; accepte l'entrée du pipeline.                                |
| `-NewName`                 | Nouveau nom d'enregistrement non vide.                                         |
| `-Type`                    | Type de fournisseur du coffre (Azure Key Vault utilise `AzureKeyVault`).       |
| `-Description`             | Nouvelle description de l'enregistrement.                                      |
| `-VaultUri`                | Nouvel URI Azure Key Vault.                                                    |
| `-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 secrète PSU qui contient le secret client de l'application. |
| `-ManagedIdentityClientId` | ID client d'une identité managée assignée à l'utilisateur.                     |
| `-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) · [New-PSUSecretVault](/powershell-universal/fr/commandes-powershell/new-psusecretvault.md) · [Remove-PSUSecretVault](/powershell-universal/fr/commandes-powershell/remove-psusecretvault.md)

## PERMISSIONS

Le jeton d'accès requiert `platform.vaults/update` 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/set-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.
