Created
August 25, 2016 13:14
-
-
Save JanneMattila/7322b53c3baff2d6b405f14544743df1 to your computer and use it in GitHub Desktop.
Add user to Key Vault
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
$me = Get-AzureRmADUser -SearchString "your name" | |
Set-AzureRmKeyVaultAccessPolicy ` | |
-VaultName $VaultName ` | |
-ResourceGroupName $ResourceGroupName ` | |
-UserPrincipalName $me.UserPrincipalName ` | |
-PermissionsToKeys all ` | |
-PermissionsToSecrets all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment