Hi DV,
Thank you for reaching out to Microsoft QA. Please share the requested details in the Private Messages section at your convenience.
it looks like you're in a tough spot after accidentally deleting your resource group that contained an Azure SQL Server and a database. Unfortunately, once a resource group is deleted in Azure, there's no supported way to recover it, and that includes the SQL Server and its associated databases.
Here’s a breakdown of the situation based on the information provided:
1.Deletion is Irreversible: When the resource group was deleted, all related resources, including the Azure SQL Server and databases, were also deleted permanently. The Azure SQL databases cannot be recovered once the server is gone and unfortunately, any backups that might have existed were also deleted.
2.Long-Term Retention (LTR) Backups: If you had LTR backups enabled for your database, you might be able to restore it to a new server. If you haven’t checked yet, you can use the following command to see if any LTR backups are available:
az sql db ltr-backup list --location <your_location> --subscription <your_subscription_id>
If LTR backups exist, you can restore the database from one of those backups to a new SQL Server.
3.No Server Recovery Options: There’s currently no official way to restore a deleted server, and even if a new server with the same name is created, the recovery won't work. The only reliable method remains via LTR backups, if they were configured before the deletion.
4.Future Prevention: To prevent this from happening again, consider enabling Resource Locks on important resource groups and databases. This can help guard against accidental deletion in the future.
Here are some links to relevant documentation for your reference:
1.Recover dropped SQL Servers and databases following resource group deletion
2.Long-term backup retention (LTR)
3.Prevent and recover from accidental deletions
Please let us know if you have any questions and concerns.