Skip to content

Commit

Permalink
Merge pull request #78 from MicrosoftDocs/main
Browse files Browse the repository at this point in the history
Publish to live
  • Loading branch information
sdwheeler authored Jul 11, 2022
2 parents 4fde27e + 689bd3d commit 8479c74
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,35 @@ It uses the **DefaultVault** parameter to make the registered vault the default
`Get-SecretVault` lists all registered vaults for the user, verifying the vault was registered and
set as the default vault.

### Example 2

```powershell
$parameters = @{
Name = 'Azure'
ModuleName = 'Az.KeyVault'
VaultParameters = @{
AZKVaultName = 'AzureKeyVault'
SubscriptionId = (Get-AzContext).Subscription.Id
}
DefaultVault = $true
}
Register-SecretVault @parameters
Get-SecretVault
```

```Output
Name ModuleName IsDefaultVault
---- ---------- --------------
Azure Az.KeyVault True
```

This example registers an **Az.KeyVault** extension vault for the current user. The
[Az.KeyVault](https://www.powershellgallery.com/packages/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

## PARAMETERS

### -AllowClobber
Expand Down

0 comments on commit 8479c74

Please sign in to comment.