| AKS and Azure App Service exhaust connections on direct port 5432 | Applications connect directly to PostgreSQL port 5432 instead of enabling Flexible Server's built-in PgBouncer on port 6432, or session-level ORM settings break transaction pooling. | Enable pgbouncer.enabled = true via Azure CLI/Bicep, configure transaction pooling with ignore_startup_parameters and query_wait_timeout, and migrate workloads to port 6432. |
| Azure Premium SSD storage throttles IOPS and inflates commit latency | On standard Premium SSD (P10-P80), max IOPS and throughput are tightly bound to provisioned disk size and VM SKU ceilings, causing write stalls during checkpoints and autovacuum. | Configure IOPS autoscale or migrate to Premium SSD v2 for decoupled IOPS/throughput, tune checkpoint_completion_target and autovacuum cost limits, and eliminate top I/O-burning queries. |
| Legacy Single Server workloads fail after moving to Flexible Server | Single Server used a proprietary proxy gateway requiring user@servername logins and PG 11 extensions; Flexible Server connects directly to the VM and enforces azure_pg_admin role rules. | Refactor connection strings, map role grants under azure_pg_admin, verify extension allowlists via azure.extensions, and combine migration with a clean upgrade to PostgreSQL 16 or 17. |
| Zone-Redundant HA failover takes longer than expected or drops transactions | Long-running transactions, large dirty buffer flushes, or client drivers lacking fast TCP keepalives delay standby promotion and endpoint re-routing across Azure Availability Zones. | Enforce idle_in_transaction_session_timeout, tune bgwriter and checkpoint intervals, route clients through port 6432 PgBouncer, and run scheduled forced-failover drills. |
| Autovacuum lag and table bloat degrade General Purpose / Memory Optimized SKUs | Default Flexible Server server parameters leave conservative autovacuum worker counts and scale factors on high-churn tables, while unindexed queries burn vCore CPU. | Tune autovacuum_max_workers, autovacuum_vacuum_cost_limit, and per-table storage parameters, and execute online pg_repack runs to reclaim bloated disk space. |
| Blocked extension installations fail with 'extension is not allow-listed' | Azure Flexible Server requires every extension (such as pg_stat_statements, pgaudit, pg_cron, pgvector, or postgis) to be explicitly added to the azure.extensions server parameter before CREATE EXTENSION. | Manage azure.extensions and shared_preload_libraries declaratively in Terraform/Bicep so CI/CD migrations never fail on missing allowlist entries. |