Forum Discussion
Deleted
Feb 14, 2022Deny public access for PostgreSQL.
Hello All, I have a postgreSQL single server on Azure, and as part of security best practice, I want to deny public access over that server. But the problem is that when I deny public access, I c...
Kidd_Ip
Dec 23, 2025MVP
You can restrict public access to your Azure Database for PostgreSQL while still enabling application connectivity, provided those applications are integrated with your Azure Virtual Network (VNet) and configured to use Private Endpoints. Applications or APIs that are hosted outside of Azure, or that lack VNet integration, will lose connectivity once public access is disabled. To address this, you should either migrate the APIs into Azure services such as App Service, Azure Kubernetes Service (AKS), or Virtual Machines with VNet integration, or establish secure connectivity from external environments through VPN or ExpressRoute so they can access the database via the private endpoint.