-
-
Save ChabaOk/5057f267c9854c2d7e2c4d533f460e91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Login-AzureRmAccount | |
$MyKeyVaultName = 'vm360degreekeyvault' | |
$mySecretPasswordDB = 'passworddb' | |
New-AzureRmKeyVault -VaultName $MyKeyVaultName -ResourceGroupName 'rgWestUS2' -Location 'westus2' | |
Get-AzureRmKeyVault -VaultName $MyKeyVaultName | |
Set-AzureKeyVaultSecret -VaultName $MyKeyVaultName -Name 'passworddb' ` | |
-SecretValue (ConvertTo-SecureString -String 'p@ssw0rd' -AsPlainText -Force) | |
get-AzureKeyVaultSecret -VaultName $MyKeyVaultName -Name $mySecretPasswordDB | fl * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment