If you came here you probably already know that delete a Key Vault in Azure is not as easy as it sounds. Sure, it’s gone from the Azure portal. However, when you try to create one using the same name you’ll find out that it was not fully deleted.
The following recipe shows how to get rid of the Key Vault, for good.
Install Azure CLI according to the following steps. The example below uses
brew update && brew install azure-cli
Login and find the soft-deleted key vault you want to purge. If you happen to have multiple subscriptions, use the
--subscriptionparam to indicate which one should be searched.
az login az keyvault list-deleted
az keyvault purge --name <keyvault-name>