I have disabled the public connection for my azure postgresql database and created the private endpoint connection, I pointed my relevant vnet and subnet while private endpoint creation. Private endpoint connection configuration for successful and it is inapproved status. But I could not able to connect my database vi pgadmin using dns name. I'm getting the following error.
The public network access on this server is disabled. To connect to this server, use the Private Endpoint from inside your virtual network. FATAL:
But same is working with private ip of private endpoint.
I'm assume its because of dns configuration issue. I checked my private dns zone too. I'm able see the relevant record for my private ip in dns zone. I'm not sure what I'm missing.
Additional Clarification
Shall we configure multiple private endpoint for same resource(Postgresql) to multiple vnets?
Latest private endpoint ip overriding the previous endpoint ip in private dns zone? It's throwing dns resolvable issues. Is that expected way ?
Anyone please advise me on this?
Reference:
https://learn.microsoft.com/en-us/azure/private-link/troubleshoot-private-endpoint-connectivity