Skip to content

Commit

Permalink
status
Browse files Browse the repository at this point in the history
  • Loading branch information
meganbradley committed Nov 28, 2024
1 parent 0a167e8 commit 30f6de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azps-0.10.0/Az.KeyVault/Remove-AzKeyVaultAccessPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ This example identifies the application by using the service principal name regi

### Example 3: Remove permissions for an application by using its object ID
```
PS C:\>Remove-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ObjectID 00001111-aaaa-2222-bbbb-3333cccc4444
PS C:\>Remove-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ObjectID aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
```

This command removes all the permissions that an application has on the key vault named Contoso03Vault.
Expand Down
2 changes: 1 addition & 1 deletion azps-0.10.0/Az.KeyVault/Set-AzKeyVaultAccessPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ This example specifies the service principal name `http://payroll.contoso.com`,

### Example 3: Grant permissions for an application using its object ID
```
PS C:\>Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ObjectId 00001111-aaaa-2222-bbbb-3333cccc4444 -PermissionsToSecrets Get,Set
PS C:\>Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ObjectId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb -PermissionsToSecrets Get,Set
```

This command grants the application permissions to read and write secrets.
Expand Down

0 comments on commit 30f6de4

Please sign in to comment.