Skip to content

Instantly share code, notes, and snippets.

@JanneMattila
Created August 25, 2016 13:14
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