Last active
November 4, 2018 13:06
-
-
Save bdanse/b508de67f7f6b3c4ef0370b30133d431 to your computer and use it in GitHub Desktop.
SetKeyvaultPSCredentialExample
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
#Single keyvault PSCredential secret | |
Set-KeyvaultPSCredential -Name 'Name1' -UserName 'domain\user2' -VaultName mykeyvault | |
#Create multiple keyvault PSCredential secrets based on a hashtable | |
$hash = @( | |
@{ | |
Name = 'Name1' | |
UserName = 'domain\User1' | |
}, | |
@{ | |
Name = 'Name2' | |
UserName = 'domain\User2' | |
} | |
) | |
$hash | Set-KeyvaultPSCredential -VaultName mykeyvault |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment