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

# New-PSUSecretVault

Crea una registrazione di Azure Key Vault basata su modello da utilizzare con le variabili segrete e le credenziali di PowerShell Universal.

## SINOSSI

Crea una registrazione della cassaforte dei segreti.

## SINTASSI

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

## DESCRIZIONE

Crea una registrazione di archivio dei segreti di PowerShell Universal supportata da un modello. Il tipo di provider predefinito è `AzureKeyVault`; le registrazioni di Azure Key Vault vengono gestite nel processo e si possono selezionare per le variabili segrete e le credenziali. Per l'autenticazione con segreto client, `-ClientSecretVariable` indica il nome di una variabile segreta PSU che contiene il segreto client di Entra ID; il valore non viene scritto nella configurazione dell'archivio.

## ESEMPI

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

## PARAMETRI

| Parametro                  | Descrizione                                                                                             |
| -------------------------- | ------------------------------------------------------------------------------------------------------- |
| `-Name`                    | Nome di registrazione dell'archivio obbligatorio.                                                       |
| `-VaultUri`                | URI di Azure Key Vault obbligatorio.                                                                    |
| `-Type`                    | Tipo di provider dell'archivio, `AzureKeyVault` per impostazione predefinita.                           |
| `-Description`             | Descrizione della registrazione.                                                                        |
| `-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 PSU che contiene il segreto client dell'applicazione.                              |
| `-ManagedIdentityClientId` | ID client dell'identità gestita assegnata dall'utente; ometterlo per un'identità assegnata dal sistema. |
| `-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) · [Set-PSUSecretVault](/powershell-universal/it/comandi-powershell/set-psusecretvault.md)

## AUTORIZZAZIONI

Il token di accesso richiede `platform.vaults/create` 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/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.
