Azure / azure-libraries-for-net

Azure libraries for .Net
MIT License
380 stars 192 forks source link

[FEATURE REQ] Key Vault does not contain "enableRbacAuthorization" property #1235

Open anthturner opened 3 years ago

anthturner commented 3 years ago

Azure Key Vault (newly) supports per-key and per-secret RBAC authorization, however, doing so requires that the Key Vault operates in RBAC mode rather than access policy mode.

Currently, the Fluent API does not have a corresponding property for that "enableRbacAuthorization" boolean on the Vault properties.

I would like for the team to add an option to support this, as the best alternative is manually writing the JSON PATCH document and submitting it using the HttpClient.

There is an existing property for this elsewhere in the API as well: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.keyvault.models.vaultproperties.enablerbacauthorization?view=azure-dotnet

@jongio

weidongxu-microsoft commented 3 years ago

The enableRbacAuthorization property is added in 2019-09-01 api-version, which .NET Fluent still at 2018-02-01