PostgreSQL flexible server stuck in provisioning after InternalServerError

Tim Reed 20 Reputation points
2025-09-30T18:34:34.4666667+00:00

Received an error when originally deploying a postgreSQL flexible server in East US via Terraform:

InternalServerError An unexpected error occured while processing the request

Now it is stuck in "Provisioning" and if I click into the resource it shows:

Cannot read properties of undefined (reading 'createdAt')

Tried deleting it via the CLI, but it says it can't find any such resource:

az postgres flexible-server delete --resource-group <rg-name> --name <db-name>

Also tried clicking into the resource group and deleting the resource there which also failed.

I also tried re-deploying it via Terraform and also via the Azure UI and both failed with the same InternalServerError.

We need to keep the name of this server, so we can't retry deploying under a different name.

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Tim Reed 20 Reputation points
    2025-10-14T18:20:35.82+00:00

    The stuck postgres servers finally removed from the UI on their own. I went ahead and updated Terraform and the azurerm TF provider to the latest versions and tried again and it worked.

    Not sure if it was an outdated provider version, or if there was something else going on, but either way we got past this issue.


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.