Recover Deleted Azure Resources

Without any planned backup

Xin Cheng
1 min readOct 10, 2023

Recently someone deleted our PoC resource groups without any communication. And they said there is no backup, so it is on our own. Even though we did not setup backup, it seems some Azure resources can still be recovered. If you have the privilege, setup resource lock or soft-delete for such situations in the future.

Below are info I found. For code, it is relatively easy to store in code versioning system and restore. So most info is really how to restore resources with data.

Application insight

Need to recover log analytics, then manually create new ap insights resource
https://azure.microsoft.com/en-au/updates/log-analytics-workspace-recovery-in-now-supported-in-azure-portal/
Azure Machine Learning
https://learn.microsoft.com/en-us/azure/machine-learning/concept-soft-delete
Storage account
https://learn.microsoft.com/en-us/azure/storage/common/storage-account-recover
Key vaults
https://learn.microsoft.com/en-us/azure/key-vault/general/key-vault-recovery
App service
https://learn.microsoft.com/en-us/azure/app-service/app-service-undelete
Azure AD
https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/restore-application
The following resources seem no restore capability without backup. Will update if found.

Container registry

It is to store our customized machine learning image. There seems no recycle bin or soft delete enabled, so need to recreate one and associate with Azure ML workspace.
VM image

There seems no recycle bin or soft delete enabled. Need to contact MS support within 14 days (with best effort).

--

--

Xin Cheng
Xin Cheng

Written by Xin Cheng

Multi/Hybrid-cloud, Kubernetes, cloud-native, big data, machine learning, IoT developer/architect, 3x Azure-certified, 3x AWS-certified, 2x GCP-certified

No responses yet