Entra Key Vault Key Rotation Policy to Rotating the Storage Account Key

rr-4098 1,766 Reputation points
2025-01-09T15:49:10.8666667+00:00

I created a Key Vault and granted my storage account the Key Vault Officer role. I then setup a rotation policy as outline in the article below. I see versions of keys listed in Key Vault but the last rotation time stamp on the storage account key is from 100+ days ago so the policy is not actually rotating the key. Even manually clicking on rotate keys in the policy makes it look like it runs but the time stamp on the storage account key remains unchanged.

What am I missing ???

https://www.techtarget.com/searchcloudcomputing/tutorial/How-to-perform-and-automate-key-rotation-in-Azure-Key-Vault

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,353 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,327 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 26,881 Reputation points Microsoft Employee
    2025-01-13T22:20:46.45+00:00

    Hi @rr-4098 , please make sure that the policy is correctly applied to the key. You can verify this by checking the policy details for the key in the Azure portal or by using the Azure CLI command az keyvault key rotation-policy show.

    Also double check that the key is being used by the storage account. You can check this by going to the storage account in the Azure portal, selecting "Access keys" and verifying that the key you are rotating is being used for encryption.

    If both of these steps are correct, it's possible that the policy is not being triggered due to the expiration time not being reached or the time interval not being set correctly. Verify this as well.

    Please let me know your results and I can help you further!

    Best,

    James


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.