How to restore deleted azure resource groups

Arshad picture Arshad · Mar 11, 2017 · Viewed 11.6k times · Source

One of my resource groups has been deleted by mistake. I am unable to find any option in the azure portal to restore it. Is there any option available to restore deleted resource groups?

Answer

Stopped Contributing picture Stopped Contributing · Mar 11, 2017

Is there any option available to restore deleted resource groups?

Directly, there's no method to restore deleted resource groups. One thing you could do is create a new resource group and find the deployment template used to create resource in the deleted resource group. You can then use that template to recreate the resources.

For future reference, you should lock your resource groups with "CANNOT DELETE" lock to prevent accidental deletes.