Can we control the version of an Azure key vault secret?

Subhash Kumar Mahato 120 Reputation points
2024-07-17T06:41:38.5+00:00

Hi,

I have a use case where I need to update a secret value every week. Each update creates a new version of the secret. Over a year, this results in approximately 52 versions. I want to restrict it so that only the last 7 versions are retained. Is it possible to achieve this?

Additionally, what is the maximum limit for the number of secret versions in Azure Key Vault?

Thank you!

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,184 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshukatara-6769 7,830 Reputation points
    2024-07-17T06:52:04.4+00:00

    Hi Subhash , Welcome to MS Q&A

    The maximum limit for the number of versions on a secret in Azure Key Vault is 500. However, it's important to note that storing a large number of versions (500+) can impact the performance of backup operations.

    As for your use case of retaining only the last 7 versions, Azure Key Vault does not automatically delete previous versions of a secret. To achieve this, you would need to implement a cleanup process that removes older versions of secrets.

    For more information, you can refer to the following Azure documentation and below Image

    User's image

    Please let me know if any questions

    Kindly accept answer if it helps

    Thanks

    Deepanshu


0 additional answers

Sort by: Most helpful