Skip to content

Instantly share code, notes, and snippets.

@JanneMattila
Created August 25, 2016 13:14
Show Gist options
  • Save JanneMattila/7322b53c3baff2d6b405f14544743df1 to your computer and use it in GitHub Desktop.
Save JanneMattila/7322b53c3baff2d6b405f14544743df1 to your computer and use it in GitHub Desktop.
Add user to Key Vault
$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