This cmdlet adds a SecretManagement extension vault to the current user's vault registry. An
extension vault is a PowerShell module that conforms to the required extension vault format. This
cmdlet verifies that the specified module meets conformance requirements before adding it to the
extension vault registry. Extension vaults are registered to the current user and don't affect
other user vault registrations.
The first vault registered with this cmdlet is automatically defined as the default vault even if
the DefaultVault parameter isn't specified.
This example registers a Microsoft.PowerShell.SecretStore extension vault for the current user.
It uses the DefaultVault parameter to make the registered vault the default vault for the user.
Get-SecretVault lists all registered vaults for the user, verifying the vault was registered and
set as the default vault.
Name ModuleName IsDefaultVault
---- ---------- --------------
Azure Az.KeyVault True
This example registers an Az.KeyVault extension vault for the current user. The
Az.KeyVault module needs to be installed
on prior. For the VaultParameters:
AZKVaultName specifies the name of the Key Vault on Azure
SubscriptionId specifies the ID of the subscription where the Key Vault is created in
Parámetros
-AllowClobber
If specified, allows the cmdlet to overwrite an existing registered extension vault with the same
name.
Specifies the name of the PowerShell module that implements the extension vault. Enter the name of a
module or the path to the module. If you specify a name, PowerShell searches for it in the known
module paths. If you specify a path, PowerShell searches that path for the module.
Indicates that the cmdlet should return the SecretVaultInfo object for the successfully
registered extension vault. By default this cmdlet doesn't return any output.
Specifies a Hashtable object containing optional key-value pairs used as parameters by the
extension vault. These parameters are optional. Consult the documentation of the vault extension
module to see what values are required.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
Entradas
None
Salidas
None
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.