Azure PostgreSQL Flexible Server Creation Fails with InternalServerError

karim sellami 5 Reputation points
2024-08-27T14:15:10.72+00:00

Hi,

I'm not able to provision an Azure PostgreSQL Flexible Server. I got the following error:

polling after Create: polling failed: the Azure API returned the following error:

│ Status: "InternalServerError"

│ Code: ""

│ Message: "An unexpected error occured while processing the request. Tracking ID: 'b0df1034-8152-4017-9782-42d43c8b0962'"

│ Activity Id: ""

│ ---

│ API Response:

│ ----[start]----

│ {"name":"819bc68a-4f86-4e3f-89e7-f5ada93264c6","status":"Failed","startTime":"2024-08-27T13:59:28.823Z","error":{"code":"InternalServerError","message":"An unexpected error occured while processing the request. Tracking ID: 'b0df1034-8152-4017-9782-42d43c8b0962'"}}

│ -----[end]-----

Could you help troubleshoot the issue?

Azure Database for PostgreSQL
{count} vote

2 answers

Sort by: Most helpful
  1. RahulRandive 10,501 Reputation points Volunteer Moderator
    2024-08-27T14:40:28.6133333+00:00

    Hi @karim sellami

    We have experienced in the past that deployments often fail due to capacity issues in specific regions. If the region isn't constrained, consider creating the server in another region.

    Also, have you also tried creating the server through the portal?

    Let us know if you have any question.

    Thank You


  2. Chris Pollock 21 Reputation points
    2025-10-21T13:44:56.2566667+00:00

    I was getting this same error and I ended up putting in an Azure Support request. In summary this was their response:

    "Our feedback: We would like to confirm that there is a current Azure capacity constraint in “East US” region and availability of SKU and capacity to provision a new instance may not complete unfortunately. We apologize for this current capacity constraint."

    I was able to create a PostgreSQL Flexible Server in East US 2. Clearly the error message needs to be more clear as they were also able to see this error in their end:
    "Virtual machine creation failed. code: ProvisioningState/failed/ZonalAllocationFailed, level: Error, displayStatus: Provisioning failed, message: Allocation failed. We do not have sufficient capacity for the requested VM size in this zone. Read more about improving likelihood of allocation success at http://aka.ms/allocation-guidance "

    0 comments No comments

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.