i need some help with postgresql flexible server and restoring a backup
we just did this in development RG and all was well, went to restore the same day backup in staging and it is failing to deploy the database in azure, then when i go to the RG i expected the db to be recreated in i see it but i am unable to load it or delete the resource as it says it cant be found....
any help would be great were kind of dead in the water till this is resolved.
Ran az deployment group list --resource-group RosieVision-Staging --query "[?properties.provisioningState=='Failed'].{deployment:name, timestamp:properties.timestamp, server:properties.error.details[0].target}" to capture every failed PostgreSQL flexible-server deployment. Azure reported the following targets, each left in a failed provisioning state:
staging-db-12-3-25 — failure recorded 2025‑12‑05T21:57:48Z (RestorePostgreSQLFlexibleServer_19c038…)
staging-12-2-25 — 2025‑12‑05T20:41:42Z (RestorePostgreSQLFlexibleServer_e21ece…)
staging-db — 2025‑12‑05T20:32:28Z (RestorePostgreSQLFlexibleServer_7daafa…)
staging-stage-12-2-25 — 2025‑12‑05T20:26:42Z (RestorePostgreSQLFlexibleServer_2e23f5…)
staging-stage-12-1-25 — 2025‑12‑05T19:12:59Z (RestorePostgreSQLFlexibleServer_ca876a…)
staging-stage — compute/storage update failed 2025‑12‑05T18:49:19Z (Microsoft.PostgreSQLFlexibleServer.UpdateComputeAndStoragePostgr)
stage-12-2-25 — 2025‑12‑05T18:36:59Z (RestorePostgreSQLFlexibleServer_903f0d…)
staging-stage-12-2-25 — two failed restore attempts at 2025‑12‑05T18:34:33Z and 2025‑12‑05T18:10:59Z
db-stage-12-2-25 — 2025‑12‑05T18:07:20Z (RestorePostgreSQLFlexibleServer_cade40…)
Each failure surfaced the same ResourceDeploymentFailure message (“resource write operation … reached terminal provisioning state ‘Failed’”). No PostgreSQL flexible server currently shows an active user-visible state of Failed (az postgres flexible-server list … returns only rv-chat-stage and rosievisiondb-staging-stage, both Ready), so these names only exist as failed deployments. Next step, if needed, is to inspect deployment operations for root-cause detail: az deployment operation group list --resource-group RosieVision-Staging --name <deploymentName>
thanks,
Micheal
Azure Database for PostgreSQL
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more