An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
Hello Hobbyland Admin,
Thank you for reaching out to the Microsoft Q&A forum.
When investigated form our end we see that when you delete a resource group in Azure, that deletion is irreversible at the Resource Manager level—Azure doesn’t provide a “undelete” button for an entire RG. However, some individual resource types do have their own soft-delete or backup/restore capabilities. Here’s what you can look at:
Azure VMs / Managed Disks
If you had Azure Backup configured (Recovery Services Vault), you can restore disks or entire VMs using the Restore-AzRecoveryServicesBackupItem cmdlet.
Steps:
- Go to your Recovery Services vault in the portal.
- Under “Backup items,” choose “Azure Virtual Machine,” find your VM’s recovery point, and initiate a “Restore disks” operation.
- You can then re-create the VM from those disks.
Azure SQL Servers & Databases
If the SQL server was deleted within the last 7 days and you didn’t re-create a server with the same name, you can attempt Restore-AzSqlServer to bring back the entire server.
For individual databases, you may also use Azure SQL’s point-in-time restore or long-term backup retention if you had those enabled.
Recovery Services Vault (Backup Vault)
If you soft-deleted a Backup vault, you can undelete it using Undo-AzDataProtectionVaultDeletion.
Other Resources
Check each service’s backup/soft-delete features (for example, Storage Account blob soft delete, Key Vault soft-delete, etc.). If you had those on, you might recover data per service.
If you didn’t have any backup or soft-delete configured prior to the deletion, sadly there’s no way to bulk “undelete” a resource group. You’ll need to re-deploy those resources manually or via ARM templates.
Hope this helps you figure out which pieces you can recover. If you hit any roadblocks, I’ll share some follow-up questions below so we can dig deeper.
Reference Links
Recovering Deleted Resource Group (note: RG deletion is irreversible) https://docs.microsoft.com/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-powershell#how-order-of-deletion-is-determined
Restore-AzRecoveryServicesBackupItem (VMs & disks) https://learn.microsoft.com/powershell/module/az.recoveryservices/restore-azrecoveryservicesbackupitem
Restore-AzSqlServer (SQL server soft-delete restore) https://learn.microsoft.com/powershell/module/az.sql/restore-azsqlserver
Undo-AzDataProtectionVaultDeletion (undelete backup vault) https://learn.microsoft.com/powershell/module/az.dataprotection/undo-azdataprotectionvaultdeletion
Azure Site Recovery overview (if you were replicating VMs) https://docs.microsoft.com/azure/site-recovery/azure-to-azure-architecture#target-resources