Please call out that soft-delete is enabled by default in portal.
I happened to create a keyvault, but cannot full delete it now.
This keyvault name is used in my script, and I need to delete and re-create many times. Now when I create a keyvault with this name, it will prompt "Exist soft deleted vault with the same name. "
Can you suggest how to purge a keyvault?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@karataliu Thank you for the feedback. We are actively investigating and will get back to you soon.
@karataliu Thanks for your feedback. This is already documented under Sof-Delete Behavior in the current document.
@karataliu Can you please check if Purge Protection is on for the key vault as when purge protection is on you cannot purge a keyvault or its objects until the retention period is passed.
Also, when you are trying to delete from your script, are you checking if the key vault is in deleted state before purging it ?
my question is simply how to trigger purge keyvault action : )
Just found 'az keyvault purge' command, should work then. thanks.
@SaurabhSharma-MSFT I got the message
Remove-AzureRmKeyVault : Operation 'DeletedVaultPurge' is not allowed.
How can enable the operation? I created the keyvault myself, and I've done it with other keyvaults the only difference with this one is that it does have purge protection enabled but I can't seem to be able to disable it...
I've submitted a PR that shows you how you can actually do this https://github.com/MicrosoftDocs/azure-docs/pull/62209
I have owner permissions on the subs. Still give me this error: Operation 'DeletedVaultPurge' is not allowed.
Hello. I am unable to purge a keyvault. The keyvault is not showing up when i search it with
az keyvault list-deleted
But when i try to re create from portal or CLI i get error :
"The name 'l
I'd be awesome if soft-deleted key vaults would be renamed or versioned as to not break repeatable deployments
Most helpful comment
my question is simply how to trigger purge keyvault action : )
Just found 'az keyvault purge' command, should work then. thanks.