0

I am trying to setup Access Policy for existing Azure Key Vault using Fluent Managment

I can define access policy during creation and access them after it, but I can't find any method to alter it later. I want to add Set permission, add some secrets, and revoke it.

 _azure.Vaults.Define(name) .WithRegion(group.Region) .WithExistingResourceGroup(group) .DefineAccessPolicy() .ForServicePrincipal(principalName) .AllowSecretPermissions(secretPermissions) .Attach() .CreateAsync() appVault.AccessPolicies.????? 

1 Answer 1

1

There are multiple options to update existing keyvault access policies.

In C# we can use the keyvault nuget package and the Keyvaultmanagementclient class to manage azure keyvault.

We can also update the keyvault access policies using Powershell commandlet Set-AzureRmKeyVaultAccessPolicy.

And the same can be achieved of course using Azure RM rest APIs . Vaults-Update access policy.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.