After deleting a postgres flexible server the name is still taken

Jerome Bollinger 0 Reputation points
2024-07-16T08:22:34.9833333+00:00

After deleting a postgres flexible server, the server name remains unusable. The name is specific enough to assume no one else is using this name.

The server was setup in a Vnet thus creating an automatic private dns zone record. There might be a hint to the cause of this problem:

When using dig SERVER_NAME.postgres.database.azure.com the record still remains even though the server has been deleted. However, this DNS record is not visible in the records list of the private dns zone portal page.

This could mean that the reason for the unusable name could lie in the not fully deleted DNS record.

Azure Database for PostgreSQL
{count} votes

2 answers

Sort by: Most helpful
  1. ShaktiSingh-MSFT 14,376 Reputation points Microsoft Employee
    2024-07-16T09:56:55.11+00:00

    Hi Jerome Bollinger •,

    Welcome to Microsoft Q&A forum.

    As I understand, you are unable to create Azure Database for PostGreSQL Flexible server with the name of a deleted server.

    And even after using dig you could see that server shows deleted.

    I would recommend you to try Azure CLI/Powershell commands to check for DNS records in the relevant Private DNS Zone.

    If found, try deleting and retry creating server if works fine.

    Let us know how it goes.

    Thanks

    0 comments No comments

  2. Jerome Bollinger 0 Reputation points
    2024-07-19T15:35:56.2233333+00:00

    And even after using dig you could see that server shows deleted.

    Thank you for your response!

    dig shows that the dns record is still there.

    When I check the record list in private dns zone however, it is not listed.

    0 comments No comments