postgres fast restore failing

Chris Marais 0 Reputation points
2025-05-16T09:30:10.1733333+00:00

When we try to fast restore our database to a point in time, deployment starts and then reaches a terminal state of Failed.

  • Deployment error
    • The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'. (Code: ResourceDeploymentFailure, Target: /subscriptions/xxxx-xxxxx-xxxx/resourceGroups/rg-database-zonerd-prod/providers/Microsoft.DBforPostgreSQL/flexibleServers/sf-dr-delete-temp)
    • Raw error
    •     {
            "code": "DeploymentFailed",
            "target": "/subscriptions/xxx-xxxx-xxxx/resourceGroups/rg-database-zonerd-prod/providers/Microsoft.Resources/deployments/RestorePostgreSQLFlexibleServer_33dd95e0474747f78357016a2b08ddbe",
            "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
            "details": [
              {
                "code": "ResourceDeploymentFailure",
                "target": "/subscriptions/xxxx-xxxxx-xxxx/resourceGroups/rg-database-zonerd-prod/providers/Microsoft.DBforPostgreSQL/flexibleServers/sf-dr-delete-temp",
                "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."
              }
            ]
          }
      
  • Detail error
    • Summary
          An unexpected error occured while processing the request. Tracking ID: 'b6cbee14-0574-4508-913c-49f9b47527a3'
           (Code: InternalServerError)
      
    • Raw
          {
            "code": "InternalServerError",
            "message": "An unexpected error occured while processing the request. Tracking ID: 'b6cbee14-0574-4508-913c-49f9b47527a3'"
          }
      
Azure Database for PostgreSQL

1 answer

Sort by: Oldest
  1. PratikLad 1,680 Reputation points Microsoft External Staff Moderator
    2025-05-29T18:10:08.5633333+00:00

    Hi Chris Marais

    Based on our investigation, the issue was caused by a crash in firewall rule processing, which happened due to conflicting or incorrect priority values in the firewall configuration. This resulted in access issues and disrupted the database restore functionality.

    Our internal team identified the misconfigurations and corrected the priority values across multiple firewall rule entries. We also restarted several key services on the primary virtual machine to restore system stability. All container health checks came back normal, confirming that everything is now running as expected.

    At this point, you should be able to successfully restore the database.

    As you suggested, for a more permanent solution, it's a good idea to migrate the affected workload to a new server and decommission the current one to avoid similar issues in the future.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.