An Azure managed PostgreSQL database service for app development and deployment.
Hi @Gilles Jacobs I've checked your server status from the backend. it is back online and running state.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Subject
Azure Database for PostgreSQL Flexible Server control-plane failure in Sweden Central: database ARM GET returns 502 ServerUnableToRetriveData,
server restart returns 500 InternalServerError
Severity / Impact
Our dev deployment is blocked because Terraform can no longer manage the PostgreSQL Flexible Server database resource. The issue started on March
23, 2026. Acceptance does not have the same issue.
Resource Details
Issue Summary
Since March 23, 2026, reads of the PostgreSQL Flexible Server database child resource are failing via Azure ARM with 502 Bad Gateway and error
code ServerUnableToRetriveData.
This blocks Terraform on resource:
Microsoft.DBforPostgreSQL/flexibleServers/databases
for:
/subscriptions/89f10dda-dae8-4293-ba07-bac583f6fdaf/resourceGroups/qontactai-dev-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/
qontactai-dev-pg/databases/qontactai-dev-pgdb
We did not make any recent server configuration changes before the problem started.
Acceptance environment does not show the same behavior, so this appears scoped to this specific server/database or backend shard rather than our
Terraform code.
Observed Behavior
unexpected status 502 (502 Bad Gateway) with error:
ServerUnableToRetriveData: Server encountered an issue while trying to retrieve some data. Try again later.
az postgres flexible-server db show \
--resource-group qontactai-dev-rg \
--server-name qontactai-dev-pg \
--database-name qontactai-dev-pgdb \
-o jsonc
Result:
(ServerUnableToRetriveData) Server encountered an issue while trying to retrieve some data. Try again later.
Code: ServerUnableToRetriveData
Message: Server encountered an issue while trying to retrieve some data. Try again later.
az rest \
--method get \
--uri
"https://management.azure.com/subscriptions/89f10dda-dae8-4293-ba07-bac583f6fdaf/resourceGroups/qontactai-dev-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/qontactai-dev-pg/databases/qontactai-dev-pgdb?api-version=2024-08-01"
Result:
Bad Gateway({"error":{"code":"ServerUnableToRetriveData","message":"Server encountered an issue while trying to retrieve some data. Try again
later."}})
az postgres flexible-server show \
--resource-group qontactai-dev-rg \
--name qontactai-dev-pg \
-o jsonc
Relevant output:
az postgres flexible-server restart \
--resource-group qontactai-dev-rg \
--name qontactai-dev-pg
Result:
(InternalServerError) An unexpected error occured while processing the request.
Tracking ID: '789cf2ec-50a5-4541-a057-a2a7196121c1'
Request IDs / Correlation IDs
Database ARM GET request IDs:
Database ARM correlation IDs:
Restart tracking ID:
What We Need From Azure Support
Please investigate and repair the backend/control-plane state for this Flexible Server/database resource so that:
At this point the problem appears to be in Azure control plane/resource provider behavior for this specific server/database, not in client
tooling, because the failure reproduces through Terraform, Azure CLI, and direct ARM REST.
If useful, I can also compress this into a shorter portal-ready version.
An Azure managed PostgreSQL database service for app development and deployment.
Answer accepted by question author
Hi @Gilles Jacobs I've checked your server status from the backend. it is back online and running state.