My SQL Database keeps being deleted without me noticing

Nguyễn Trần Phong 1 Reputation point
2023-09-23T07:45:23.2566667+00:00

Hi, I am using a SQL database in Azure SQL Server. Recently, my database keeps being deleted without me noticing. When I figured it out, the database has been deleted. Luckily, I can restore it from Azure. But it keeps happening. So can anyone tell me what is going on?

Fyi, I only have one database in the SQL Server.

Thank you very much!

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,629 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AirGordon 7,110 Reputation points
    2023-09-23T08:02:23.17+00:00

    To investigate what is happening, you should use your Azure Activity Logs and look for the delete records.

    I would also advise that you leverage Resource Locks on the SQL Database resource to prevent it from being deleted.


  2. ShaktiSingh-MSFT 14,906 Reputation points
    2023-09-26T06:23:41.6766667+00:00

    Hi Nguyễn Trần Phong •,

    Welcome to Microsoft Q&A forum.

    We are sorry about the inconvenience you are facing.

    As I understand, your Azure SQL database is getting deleted.

    The problem looks strange as mentioned that in activity log also there is no trace.

    You could try to review if there is any Azure Policy which might be responsible for such operation.

    Also, check if you could find the missing Database in Azure CLI if not via Portal.

    If these options do not help, I would recommend you to raise support case for deeper investigation of the issue.

    If you face any issue or need assistance do let us know.

    Thank you.

    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.