Connect to Azure Database for PostgreSQL from Mac
Use your Azure PostgreSQL server’s DNS name and database credentials in a PostgreSQL connection. A private server also needs working private DNS from your Mac.
Before you start
Section titled “Before you start”You need a database account and either permitted public access or a route into the server’s private network. For public access, check that the server firewall permits your current public IP address. See Azure’s connection troubleshooting guide.
Find your connection details
Section titled “Find your connection details”Obtain the server’s fully qualified DNS name, port, database name, and complete database user name. Copy the user name as supplied; do not add a suffix from an older setup. Azure recommends the DNS name for both public and private connections.
Connect to Azure Database for PostgreSQL from Mac
Section titled “Connect to Azure Database for PostgreSQL from Mac”- Create a PostgreSQL connection using connection basics.
- Enter the server DNS name in Host.
- Enter the port, database, and database credentials.
- Configure TLS for the server.
- Click Test.
- Click Save & Connect after a successful test.
TLS and private networking
Section titled “TLS and private networking”Use Verify Full for certificate and hostname checks. Follow Azure’s current TLS guidance for the trusted certificate chain. Select any required certificate files through TableAI’s SSL/TLS controls.
For private access, connect your VPN or approved network route before testing. An SSH tunnel also needs a host that can resolve and reach the database.
If it does not connect
Section titled “If it does not connect”timeout expiredpassword authentication failed for userFor a timeout, check the firewall’s source IP and, for private access, DNS and routing. For authentication, compare the complete database user name and password with the server configuration. See 28P01, connection failed, or TLS errors.
Related
Section titled “Related”Continue with browse and search, or return to the PostgreSQL overview.