Issue with Recreating Azure MySQL Server After Deletion

Amir 0 Reputation points
2025-02-14T13:29:51.61+00:00

How to reuse the same name for an Azure Database for MySQL server after it has been deleted? Is there any option to permnanelty delete the server ?

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
906 questions
{count} votes

2 answers

Sort by: Most helpful
  1. NIKHILA NETHIKUNTA 4,525 Reputation points Microsoft Vendor
    2025-02-14T16:11:18.08+00:00

    @Amir Bakhtiari
    Thanks for the question and for using Microsoft Q&A platform.

    As per my understanding, you are looking for information on how to reuse the same name for an Azure Database for MySQL server after it has been deleted.

    To reuse the same name for an Azure Database for MySQL server after it has been deleted, you need to wait for a certain period. Azure retains the server's name for a few days to prevent accidental reuse. During this time, only the original subscription can recreate the server with the same name.

    Unfortunately, there is no option to bypass this retention period and permanently delete the server's name immediately.

    Currently, Azure does not provide an immediate permanent deletion option for MySQL servers to instantly free up the name. The deletion process is managed internally, and the name is retained temporarily to prevent accidental re-creation.

     If you need a new MySQL server immediately, consider using a different name and updating your application configuration accordingly. You can periodically check if the original name becomes available by attempting to create a new server with that name.

    Hope this helps. Please let us know if you have any further questions.

    0 comments No comments

  2. RahulRandive 10,226 Reputation points
    2025-02-20T00:42:39.1366667+00:00

    Hi @Amir

    Once the server is deleted and after waiting for some time, you can attempt to recreate it using the same name. However, Azure does not guarantee that the name will be available after deletion. Sometimes, the name may remain cached and not be released, causing issues and triggering an error stating that 'the server name already exists'.

    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.