Skip to content

Commit 59dae10

Browse files
authored
Merge pull request #204517 from markingmyname/pg
[PostgreSQL] Added note about TCP port 5432 for firewall connectivity
2 parents d7cdb0a + 66fcbdc commit 59dae10

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

articles/postgresql/flexible-server/concepts-firewall-rules.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ For example, if your application connects with a Java Database Connectivity (JDB
3333
> java.util.concurrent.ExecutionException: java.lang.RuntimeException:
3434
> org.postgresql.util.PSQLException: FATAL: no pg\_hba.conf entry for host "123.45.67.890", user "adminuser", database "postgresql", SSL
3535
36+
> [!NOTE]
37+
> To access Azure Database for PostgreSQL from your local computer, ensure that the firewall on your network and local computer allow outgoing communication on TCP port 5432.
38+
3639
## Connect from Azure
3740
We recommend that you find the outgoing IP address of any application or service and explicitly allow access to those individual IP addresses or ranges. For example, you can find the outgoing IP address of an Azure App Service app, or use a public IP address that's tied to a virtual machine.
3841

articles/postgresql/single-server/concepts-firewall-rules.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ If the source IP address of the request is within one of the ranges specified in
3232
> java.util.concurrent.ExecutionException: java.lang.RuntimeException:
3333
> org.postgresql.util.PSQLException: FATAL: no pg\_hba.conf entry for host "123.45.67.890", user "adminuser", database "postgresql", SSL
3434
35+
> [!NOTE]
36+
> To access Azure Database for PostgreSQL from your local computer, ensure that the firewall on your network and local computer allow outgoing communication on TCP port 5432.
37+
3538
## Connecting from Azure
3639

3740
It is recommended that you find the outgoing IP address of any application or service and explicitly allow access to those individual IP addresses or ranges. For example, you can find the outgoing IP address of an Azure App Service or use a public IP tied to a virtual machine or other resource (see below for info on connecting with a virtual machine's private IP over service endpoints).

0 commit comments

Comments
 (0)