An Azure backup service that provides built-in management at scale.
Welcome to Microsoft Q&A
Hello @Sharad Gogna , I hope you are doing well.
Azure does not support restoring a deleted Resource Group. Once a resource group is deleted, all resources within it are also deleted and cannot be recovered as a group. However, some individual resources may still be recoverable depending on their configuration and retention policies.
What Can Be Recovered:
- Key Vaults:
- If soft delete and purge protection were enabled, you can restore them using: az keyvault recover --name <vault-name>
- Storage Accounts:
- If soft delete and purge protection were enabled, you can restore them using: az keyvault recover --name <vault-name>
- If deleted within the retention window (usually 14 days), restore via Azure Portal:
YAML
Azure Portal → Storage Accounts → Restore deleted account
Reference: Soft delete for Azure Storage
- Other Services (SQL, Cosmos DB, Backup-enabled resources)
- Azure SQL Database: Point-in-time restore from backups Reference: https://learn.microsoft.com/en-us/azure/azure-sql/database/recovery-using-backups?view=azuresql&tabs=azure-portal#point-in-time-restore
- Cosmos DB: Continuous backup feature allows restore if enabled
- Azure Backup: If configured, restore VMs or disks Reference: Azure Backup restore guide
What Cannot Be Recovered:
- Entire Resource Group
- Container Apps, Container App Environments, Role Assignments, and most monitoring resources,these must be recreated manually or redeployed using ARM/Bicep/Terraform templates.
Below are recommended actions to redeploy resources:
If you have ARM templates or Bicep files, redeploy resources
PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <new-RG> -TemplateFile <template-path>
As an administrator, you can lock an Azure subscription, resource group, or resource to protect them from accidental user deletions and modifications. The lock overrides any user permissions and Enable soft delete and Azure Backup for critical services
Reference: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json and https://learn.microsoft.com/en-us/azure/backup/backup-azure-security-feature-cloud?tabs=azure-portal
If my answer helped you, please consider marking it as accepted. This helps others in the community find similar solutions.