Can't restore postgresql flexible server backup - Internal Server Error

Danylo Zemlianyi 20 Reputation points
2025-10-30T09:48:49.0666667+00:00

Hello!
We are facing problem with database restoring.
Unable to perform Point-in-Time (or from automated Backup) Restore for PostgreSQL Flexible Server - Internal Server Errors.
We are unable to perform a point-in-time restore (or from automated Backup) for PostgreSQL Flexible Server. All restore attempts fail with InternalServerError regardless of the method used Azure Portal (Fast Restore) or Azure CLI.

Server Details:
Location: East US PostgreSQL
Version: 16 SKU: Standard_B2s Burstable
Target Restore Point: Backup: Automated backup #2 Timestamp: October 21, 2025 19:49:49 UTC 2025-10-21T19:49:49Z Earliest Restore Date Available: October 20, 2025 19:48:51 UTC

Attempts Made:
Azure Portal - Fast Restore: Failed with deployment error showing "terminal provisioning state 'Failed'"
Azure CLI - Multiple attempts with different parameters: Different server names Different availability zones zone 1, zone 2 Different timestamps All failed with InternalServerError

Error Tracking IDs:
115fa1f2-a031-4137-b459-1197eed61976
a91050f5-b190-4bac-9a9d-25a42f8baa2e
162db4b7-a733-4656-86ed-2abd26d77b73
da237d49-cfe9-45b4-b63e-45638ec8edda
9a5abb4d-9f5f-4998-9c9e-14c89ca15ec1
03244024-6346-46e5-ae91-09ca65f7b4fe
e76a8435-8324-4f33-ba2c-8892761b2fbc

Troubleshooting Performed:
Verified Azure service health - shows as Available Verified
SKU availability in region - Standard_B2s shows as Available
Attempted restore to different availability zones
Expected Behavior: The restore operation should create a new PostgreSQL Flexible Server with data restored to the specified point in time.
Actual Behavior: All restore attempts fail immediately with InternalServerError and various tracking IDs.
Business Impact: Unable to access database backup data from October 21st. Please investigate why restore operations are failing
Best Regards, Danylo Zemlianyi

Azure Database for PostgreSQL
{count} votes

Answer accepted by question author
  1. Sina Salam 26,661 Reputation points Volunteer Moderator
    2025-11-06T13:09:52.77+00:00

    Hello Danylo Zemlianyi,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having persistent failures while attempting to restore a PostgreSQL Flexible Server from an automated backup in Azure, particularly with Point-in-Time Restore (PITR) operations in the East US region.

    This isn’t just about a successful restore eventually completing on November 3rd, but about addressing the broader issue: multiple failed attempts with InternalServerError, tracking IDs, and the lack of transparency around the root cause.

    Therefore, it’s important to validate that the new server is not only created but also operational. You should confirm the server’s status in the Azure Portal under Overview, ensure it shows “Ready,” and check performance metrics like CPU and memory under Monitoring. If you’re unable to connect, it’s likely due to post-restore configuration issues such as firewall rules, DNS resolution, or authentication mismatches.

    To resolve this, go to Networking > Firewall rules on the new server and add your client IP or App Service IP. Also, ensure that your application is using the correct FQDN (e.g., newserver.postgres.database.azure.com) and not an IP address, as IP-based connections can lead to DNS resolution failures. Use the correct username format (username@servername) and verify that SSL settings are properly configured. For more guidance, check [Azure’s official troubleshooting guide - https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-troubleshoot-common-connection-issues

    Additionally, it’s critical to validate the integrity of the restored data. Connect using psql or pgAdmin, list tables with \dt, and run sample queries to ensure data consistency. This step ensures that the backup was not only restored but also usable.

    If you still need clarity on the original InternalServerError and failed attempts, escalate the issue to Microsoft Support with your tracking IDs (e.g., 115fa1f2-a031-4137-b459-1197eed61976) and request a Post-Incident Report (PIR) via your Azure Portal or contact Priority Customer Support - PCS: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/priority-community-support

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

0 additional answers

Sort by: Most 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.