How to recover the deleted Mysql resource database

Lavanya Yatin 20 Reputation points
2025-04-24T03:59:53.4633333+00:00

Restore the deleted resource Mysql database backup ,i can't find the deleted resource in the deleted resource list , it was deleted accidently few hours before only

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,042 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shikha Ghildiyal 4,945 Reputation points Microsoft Employee
    2025-04-24T04:13:02.9433333+00:00

    Hi Lavanya Yatin,

    Thanks for reaching out to Microsoft Q&A.

    To restore a deleted Azure Database for MySQL Flexible Server instance, you need the following:

    • Azure Subscription name hosting the original server
    • Location where the server was created

    Restore steps

    1. Go to the Activity Log from the Monitor page in Azure portal.
    2. In the Activity Log, select Add filter as shown and set the following filters for the:
      1. Subscription = Your Subscription hosting the deleted server
      2. Resource Type = Azure Database for MySQL Flexible Server (Microsoft.DBforMySQL/flexibleServers)
      3. Operation = Delete MySQL Server (Microsoft.DBforMySQL/flexibleServers/delete)
      Screenshot of Activity Log filtered for delete MySQL server operation.
    3. Select the Delete MySQL Server event, select the JSON tab, and note the "resourceId" and "submissionTimestamp" attributes in JSON output. The resourceId is in the following format: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/deletedserver.
    4. Go to Create Server REST API Page and select "Try It" tab highlighted in green and sign in with your Azure account. The Azure Resource Manager URL varies by the Azure environment. Verify you're using the correct one by referring to the Azure Resource Manager environment URLs section.
    5. Provide the resourceGroupName, serverName (deleted Azure Database for MySQL Flexible Server instance name), and subscriptionId, derived from the "resourceId" attribute captured in Step 3. At the same time, the version is prepopulated, as shown in the image. Screenshot of Create server using REST API.
    6. Scroll below on the Request Body section and paste the following: JSONCopy
            {
      

          "location": "Dropped Server Location",       "properties":   {               "restorePointInTime": "submissionTimestamp - 15 minutes",               "createMode": "PointInTimeRestore",               "sourceServerResourceId": "resourceId"   }   }

       
    1. Replace the following values in the request body above:
    
       1. **Dropped server Location** with the Azure region where the deleted server was created
       
       1. `submissionTimestamp` and `resourceId` with the values captured in Step 3.
       
       1. For `restorePointInTime`, specify a value of `submissionTimestamp` minus **15 minutes** to ensure the command doesn't error out.
       
    1. If you see Response Code 201 or 202, the restore request is successfully submitted.
    
    1. The server creation can take time, depending on the database size and computing resources provided on the original server. The restore status can be monitored from:
    
       1. Activity log by filtering for:
       
          1. **Subscription** = Your Subscription
          
          1. **Resource Type** = Azure Database for MySQL Flexible Server (Microsoft.DBforMySQL/flexibleServers)
          
          1. **Operation** = Update MySQL Server Create
          
    Reference doc: [https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-restore-dropped-server](https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-restore-dropped-server)
    
    **Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.**
    
    

1 additional answer

Sort by: Most helpful
  1. Lavanya Yatin 20 Reputation points
    2025-04-24T05:25:29.11+00:00

    Hi Shikha Ghildiyal,

    Thank you for your response.

    I followed the method you provided, but unfortunately it says the resource was not found. The resource group (which contained our MySQL Flexible Server) was deleted less than 24 hours ago, and I am trying to recover it urgently.

    Although I have an active Azure Developer Support Plan, I’m unable to submit the support request. The form gets stuck at the "Additional Attached Details" page, and I’m unable to proceed further or raise a formal ticket.

    Could you please assist me in:

    Recovering the deleted MySQL Flexible Server or the resource group if possible.

    1. Resolving the issue with the support request submission so I can raise the ticket properly.

    User's image

    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.