An Azure managed PostgreSQL database service for app development and deployment.
You may be encountering an error due to an internal DNS cache may needs to be cleared. However, Azure PostgreSQL Flexible Server does not guarantee the reusability of the same name once a resource has been dropped.
If using a different name is not an issue, you can create a server with a different name. If you need to use the same name then you may need to open a support case to clean up the backend operation.
Thank You!