How to restore a deleted resource group

Mike Rusch 26 Reputation points
2025-03-13T14:51:16.8733333+00:00

We know, by default there is no possibility to recover a deleted resource group, but within the community we saw people saying that Microsoft / Support could do it.

If so, how?

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,035 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Joseph Brown 10 Reputation points
    2025-03-13T14:54:02.27+00:00

    Restoring a deleted resource group isn’t officially supported, but Microsoft Support may help in some cases. Contact them immediately, as recovery depends on retention policies and backend options. Provide subscription details and timestamps. You can also check Soft-Delete features for specific resources within the group.

    2 people found this answer helpful.

  2. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2025-03-14T22:27:46.63+00:00

    Hello, @Mike Rusch ! We received your feedback and want to make sure that your question has been answered.

    What can I do if I accidentally delete my VM?

    If you have a backup or a snapshot of the VM, then you can restore the VM:

    https://learn.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms

    If you did not backup or create a snapshot of the VM and disks have been deleted, then unfortunately the VM has been permanently deleted.

    User's image

    How can I prevent this from happening?

    There are several options you can take advantage of to make sure you don't end up in this situation:

    • Lock your resources to protect your infrastructure : Using a lock like CanNotDelete will prevent the resource/VM from being accidentally deleted.
    • Azure Backup : Azure backups can be created through the Azure portal. This method provides a browser-based user interface to create and configure Azure backups and all related resources.
    • Soft delete for Azure Backup : With soft delete, even if a malicious actor deletes a backup (or backup data is accidentally deleted), the backup data is retained for 14 additional days, allowing the recovery of that backup item with no data loss.
    • Azure Disk Backup : Azure Disk Backup is a native, cloud-based backup solution that protects your data in managed disks. It's a simple, secure, and cost-effective solution that enables you to configure protection for managed disks in a few steps. It assures that you can recover your data in a disaster scenario.
    • Selective disk backup and restore for Azure virtual machines : Azure Backup supports backing up all the disks (operating system and data) in a VM together using the virtual machine backup solution. Now, using the selective disks backup and restore functionality, you can back up a subset of the data disks in a VM. This provides an efficient and cost-effective solution for your backup and restore needs.

    I realize this probably was not what you were hoping to hear however I still hope that this has been helpful. Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.