private connection

Niren Adhikary (NAD) 146 Reputation points
2022-11-27T13:28:39.84+00:00

Hello,

I have a psql database and vm setup in the same vnet/subnet. I am trying to connect to the database from the vm but getting an 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: SSL connection is required. Please specify SSL options and retry."

I want to connect using private connection or private endpoint. So I have created a private endpoint with sub resource type psql server. But I cannot connect to the psql database when the public access is disable.

Please suggest how to establish the private connection. I am using private dns server for the virtual network.

264535-image.png

Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
490 questions
Azure Database for PostgreSQL
{count} votes