-
-
Save mleyb/819a61ee8aee4dcb3b3d2a274e933a60 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