An Azure managed PostgreSQL database service for app development and deployment.
After upgrading, the subscription can be active while PostgreSQL connectivity is still blocked by configuration or a service-side issue. For PostgreSQL, the most common causes are firewall rules, incorrect connection settings, SSL requirements, or a transient service problem.
- Verify the PostgreSQL server is reachable from the app host.
- Check that the server firewall allows the website’s outbound IP addresses.
- If there are client-side firewalls or NSGs in the path, make sure outbound port
5432is allowed.
- Recheck the connection string used by the website.
- Confirm the server name, username, password, database name, and port are correct.
- For Azure Cosmos DB for PostgreSQL, the predefined database name is
citus.
- If the database is Azure Database for PostgreSQL, make sure SSL is enabled in the connection string.
- Add
Ssl Mode=Require;. - If full certificate validation is needed, also set
Trust Server Certificate=falseand provide the root certificate path.
- Add
- Check whether this is a transient platform issue.
- Review the Microsoft Azure Service Dashboard for outages.
- If the app lost connectivity only briefly, implement retry logic because transient PostgreSQL connection interruptions can occur during maintenance or failover.
- Test firewall isolation carefully.
- For temporary testing only, a broad firewall rule from
0.0.0.0to255.255.255.255can confirm whether firewall configuration is the cause. This opens access broadly, so remove it immediately after testing and replace it with a limited rule.
- For temporary testing only, a broad firewall rule from
- If the problem started exactly when the subscription expired and upgrade completed, and all settings are already correct, open an Azure support request.
- Subscription reactivation does not guarantee that a database-side issue has cleared.
- Similar PostgreSQL cases required Microsoft intervention when the underlying VM agent or upgrade state was unhealthy.
If a quick end-to-end check is needed, use this order:
- Confirm the subscription is active.
- Confirm the PostgreSQL server itself is in a healthy/ready state.
- Validate firewall rules for the website outbound IPs.
- Validate port
5432. - Validate the exact connection string and SSL settings.
- Check Azure service health.
- If still failing, create a support request.
- Why is my Azure for Students subscription disabled and how do I reactivate it?
- Reactivate a disabled Azure subscription
- Troubleshoot connection issues to Azure Database for PostgreSQL flexible server
- Troubleshoot connection issues to Azure Database for PostgreSQL flexible server
- PostgreSQL troubleshooting
- Database missing in PostgreSql during database maintenance activity - Microsoft Q&A
- Upgrade stuck on PostgreSQL - Microsoft Q&A