azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

[QUERY] How to add new access policy to key vault without deleting all existing access policies?

Open trygvelo opened this issue 2 months ago • 4 comments

Library name and version

Azure.ResourceManager.KeyVault 1.2.0

Query/Question

As the title says, how do I add new access policy to key vault without deleting all existing access policies in the vault?

According to this bug report, it should be possible, but I just cannot figure out how: https://github.com/Azure/azure-sdk-for-net/issues/32872

This sample doesn't give any answers either. https://github.com/Azure-Samples/azure-samples-net-management/blob/master/samples/keyvault/manage-key-vault/Program.cs. If I modify the sample to update access policy for a new principal id, the existing access policy is deleted

Environment

No response

trygvelo avatar Jun 12 '24 12:06 trygvelo