How to clear older version of secrets from Azure key Vault - Stack Overflow

admin2025-05-02  0

My BL generates a dynamics token (expirable) and stores it in Azure Key value, uses this token in further logic, and generates a new token once it expires. This process creates many expired secrets in the Az Key Vault. The question is how I can learn them as expired (older versions) secrets very going to be used ever. I want to clean them.

My BL generates a dynamics token (expirable) and stores it in Azure Key value, uses this token in further logic, and generates a new token once it expires. This process creates many expired secrets in the Az Key Vault. The question is how I can learn them as expired (older versions) secrets very going to be used ever. I want to clean them.

Share Improve this question edited Mar 24 at 11:55 halfer 20.4k19 gold badges109 silver badges202 bronze badges asked Jan 2 at 0:05 Deepak ShawDeepak Shaw 6697 silver badges8 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

I have checked both Delete Secret - Delete Secret and related Remove-AzKeyVaultSecret, and found no way to adding the version parameters.

It seems that Azure does not support deleting specify version of secrets. About this topic, GitHub has a issue discussion. You can check the details here.

转载请注明原文地址:http://anycun.com/QandA/1746138699a92110.html