5

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?

Shui shengbao
  • 17,120
  • 2
  • 21
  • 40
Arshad
  • 9,129
  • 5
  • 33
  • 60

1 Answers1

8

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.

Gaurav Mantri
  • 100,555
  • 11
  • 158
  • 192
  • 2
    There is no way to find or access the deployment templates for a resource group once that resource group has been deleted. – Chris Pietschmann Mar 29 '17 at 02:43
  • Agreed! However I'm assuming that these templates are stored somewhere on premises as they can be reused. – Gaurav Mantri Mar 29 '17 at 02:47
  • They'll only have them if they used an ARM Template deployment in the first place. If they manually deployed through the portal or command-line then they wont have an "original" template. – Chris Pietschmann Mar 29 '17 at 19:49