Share via

Restore all the stuff inside a resource group

Hobbyland Admin 0 Reputation points
2026-03-19T07:10:48.78+00:00

Hi please help restore all the accidentally deleted stuff in the resource group. We cannot go through microsoft support.

Azure Site Recovery
Azure Site Recovery

An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Siva shunmugam Nadessin 7,735 Reputation points Microsoft External Staff Moderator
    2026-03-19T10:27:14.61+00:00

    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


  2. Deepanshu katara 18,145 Reputation points MVP Volunteer Moderator
    2026-03-19T09:29:33.8433333+00:00

    Hello , Welcome to MS Q&A

    This seems bit challenging but I can suggest some ways

    To restore deleted resources in Azure without involving Microsoft support, you can follow these guidelines:

    1. Check for Soft Delete: Some Azure resources support a feature called "soft delete," which allows you to recover resources within a certain period after deletion. Ensure that this feature is enabled for your resources. For example, Azure Key Vault, Azure Storage, and Azure Backup support soft delete.
    2. Use Azure Portal: If the resource type supports recovery, you can often restore it directly from the Azure Portal. Navigate to the specific service and look for options to manage or recover deleted resources.
    3. Azure CLI or PowerShell: You can use Azure CLI or PowerShell commands to attempt recovery. For instance, to recover a deleted Azure AI service resource, you can use the following Azure CLI command:
                az resource create --subscription {subscriptionID} -g {resourceGroup} -n {resourceName} --location {location} --namespace Microsoft.CognitiveServices --resource-type accounts --properties "{\"restore\": true}"
            
         
         
      
    4. Prerequisites: Ensure that the resource group where the resource was located still exists. If the resource group was deleted, you must recreate it manually, as recovering a deleted resource group is not possible.
    5. Time Sensitivity: Recovery is often time-sensitive. For example, some resources must be recovered within 48 hours of deletion.

    For more detailed instructions and specific scenarios, you can refer to the Azure documentation on recovering deleted resources.

    Pls check and let us know if any ques

    Thanks

    Deepanshu

    0 comments No comments

Your answer

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