Could not delete flexible mysq server for 12 hours, now I am being charge for this time

Wojtek Mituś 0 Reputation points
2023-02-17T11:25:01.6566667+00:00

Hello, i have created flexible mysql server instance using Terraform, and then, after 30 minutes i wanted to delete it. I have tried few times to delete it using Terraform destroy plan but it hanged very long, eventually timed out, and wasn't able to delete this one resource. Then i tried to delete it through portal - same situation, deletion started and just hanged there without any errors. After waiting 30 minutes or so, resource was still there. I could delete it through portal only after more than 12h or so. Now I see that i am being charged for entire time this resource was active. It's not much, but still i don't think is right. Is there any time period that must pass for such a resource to be able to delete it? What is the proper way to complain to MS regarding cost calculation in such cases?

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
992 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-02-17T12:38:14.7+00:00

    Hi @Wojtek Mituś ,

    Welcome to Microsoft Q&A forum and thanks for using Azure services.

    We are sorry about the issue you are currently experiencing with Deletion of Azure MySQL Flexible Server through portal and Terraform.

    I request you please open Azure CLI and try below commands with your server details:

    1. Delete a database on a flexible server.
    az mysql flexible-server db delete [--database-name]
                                       [--ids]
                                       [--resource-group]
                                       [--server-name]
                                       [--subscription]
                                       [--yes]
    

    Example: Delete database 'testDatabase' in the flexible server 'testserver'.

    az mysql flexible-server db delete --resource-group testGroup --server-name testserver --database-name testDatabase

    1. Delete a flexible server.
    az mysql flexible-server delete [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]
                                    [--yes]
    

    Example: Delete a flexible server.

    az mysql flexible-server delete --resource-group testGroup --name testserver

    Please try above steps in Azure CLI and let us know if you are facing issue. We can further investigate this issue if CLI does not help.User's image

    Awaiting your reply. Thank you.


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.