Guest User

Untitled

a guest
Jul 21st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # Specify full privileges to the vault for the application
  2. Write-Host "Setting access policy"
  3. Set-AzureRmKeyVaultAccessPolicy -VaultName $vaultName `
  4. -ObjectId $servicePrincipal.Id `
  5. -PermissionsToKeys all `
  6. -PermissionsToSecrets all `
  7. -PermissionsToCertificate all `
  8.  
  9. WARNING: The 'all' permission will be removed in May 2018 and does not include the 'purge' permission.
  10. 'Purge' permission must be explicitly set.
Add Comment
Please, Sign In to add comment