How to create a policy to force enabling of key rotation in Azure KV?

Z.K.Z 206 Reputation points
2022-05-06T08:01:17.403+00:00

Hello community,

Are there any custom or built-in policies targeting the key rotation policy inside an Azure Key Vault. Since the rotation policy feature has been added lately, I suspect that there aren't any built-in policies yet. I'm trying to create a custom policy to force enabling the key rotation feature for new keys. In other words, the 'Enable auto rotation' button below should be ticked when creating a new key.

199544-image.png

But I haven't found the right mode. I think it should be Microsoft.KeyVault.Data and for a similar policy 'Key Vault keys should have an expiration date' the target is Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn but what would it be for the key rotation feature?

Thanks and best regards!

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,135 questions
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,456 Reputation points Microsoft Employee
    2022-05-24T21:49:39.183+00:00

    @Z.K.Z
    Thank you for your time and patience on this!

    I received a response from our KV team and since the AKV Key auto rotation feature is fairly new, it has yet to onboard to Azure Policies but is on the roadmap. Since there's currently no option to leverage Azure Policies for the key rotation, I've created an internal feature request, so our engineering team is aware of the demand for this feature.

    Additional Link:
    Azure User Voice Forum
    How to configure automatic key rotation (preview) in Azure Key Vault

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful