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
Please let me know if any questions
Kindly accept answer if it helps
Thanks
Deepanshu