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

# Set-PSUSecretVault

Aggiorna una registrazione di Azure Key Vault basata su modello in PowerShell Universal.

## SINOSSI

Aggiorna una registrazione di cassaforte dei segreti basata su modello.

## SINTASSI

```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]`.

## DESCRIZIONE

Aggiorna una registrazione di archivio per ID numerico, nome o oggetto archivio dalla pipeline. Cambiano solo le proprietà specificate. `-Name` seleziona l'archivio esistente; usi `-NewName` per rinominarlo (un nuovo nome vuoto viene rifiutato). Configuri l'URI dell'archivio e le impostazioni di autenticazione senza scrivere i valori del segreto client nella configurazione dell'archivio. Indichi invece il nome di una variabile segreta PSU.

## ESEMPI

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

## PARAMETRI

| Parametro                  | Descrizione                                                                        |
| -------------------------- | ---------------------------------------------------------------------------------- |
| `-Id`                      | ID di registrazione numerico.                                                      |
| `-Name`                    | Nome di registrazione esistente (non il nuovo nome).                               |
| `-Vault`                   | Oggetto archivio; accetta l'input della pipeline.                                  |
| `-NewName`                 | Nuovo nome di registrazione non vuoto.                                             |
| `-Type`                    | Tipo di provider dell'archivio (Azure Key Vault usa `AzureKeyVault`).              |
| `-Description`             | Nuova descrizione della registrazione.                                             |
| `-VaultUri`                | Nuovo URI di Azure Key Vault.                                                      |
| `-AuthenticationType`      | Modalità di autenticazione: `Default`, `ManagedIdentity` o `ClientSecret`.         |
| `-TenantId`                | ID tenant di Entra ID per l'autenticazione con segreto client.                     |
| `-ClientId`                | ID client dell'applicazione Entra ID per l'autenticazione con segreto client.      |
| `-ClientSecretVariable`    | Nome della variabile segreta PSU che contiene il segreto client dell'applicazione. |
| `-ManagedIdentityClientId` | ID client di un'identità gestita assegnata dall'utente.                            |
| `-ComputerName`            | URL o nome host dell'API di gestione PSU (alias `-Uri`).                           |
| `-AppToken`                | Token dell'app dell'API di gestione.                                               |
| `-Credential`              | Credenziali dell'API di gestione.                                                  |
| `-UseDefaultCredentials`   | Usa le credenziali Windows correnti.                                               |
| `-Integrated`              | Usa il client di gestione nel processo.                                            |
| `-TrustCertificate`        | Ignora gli errori di convalida del certificato.                                    |
| `-Cookies`                 | Riutilizza i cookie di autenticazione della sessione.                              |

## OUTPUT

`PowerShellUniversal.Vault`.

## LINK CORRELATI

[Get-PSUSecretVault](/powershell-universal/it/comandi-powershell/get-psusecretvault.md) · [New-PSUSecretVault](/powershell-universal/it/comandi-powershell/new-psusecretvault.md) · [Remove-PSUSecretVault](/powershell-universal/it/comandi-powershell/remove-psusecretvault.md)

## AUTORIZZAZIONI

Il token di accesso richiede `platform.vaults/update` per eseguire questo cmdlet in remoto.


---

# 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/it/comandi-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.
