post image :date_long | 1 min Read

How to recover keyvault

A simple way how to recover Azrue keyvault if needed

az group create --location westeurope --resource-group "erste-compliance-dev-rg"
az keyvault recover -n "erste-compliance-dev-kv" -g "erste-compliance-dev-rg"
az keyvault secret list-deleted --vault-name "erste-compliance-dev-kv" | grep name > /tmp/secrets
cat /tmp/secrets | while read secret; do az keyvault secret recover  --vault-name "erste-compliance-dev-kv" --name "$secret"; done

cat /tmp/secrets
  azureClientId
  azureClientSecret
  azureTenantId
  endpointSuffix
  storageAccountResourceTableName
author image

Jan Toth

I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …

comments powered by Disqus