Skip to content

Instantly share code, notes, and snippets.

@PlagueHO
Last active April 17, 2017 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlagueHO/e079674f79ed6cf87b877d6829735917 to your computer and use it in GitHub Desktop.
Save PlagueHO/e079674f79ed6cf87b877d6829735917 to your computer and use it in GitHub Desktop.
Assign List and Get policy to a service principal or application in Azure Key Vault
Set-AzureRmKeyVaultAccessPolicy -VaultName $keyVaultName -ResourceGroupName $resourceGroupName `
-ServicePrincipalName 'e9b1bc3c-4769-4a98-9014-b315fd2adf53' `
-PermissionsToCertificates list,get `
-PermissionsToKeys list,get `
-PermissionsToSecrets list,get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment