Azure Database for PostgreSQL flexible server stuck in stopping state - need assistance recovering

Lachlan 30 Reputation points
2025-05-19T01:09:41.8066667+00:00

The Azure Database for PostgreSQL flexible server in one of our environments has been down for over an hour. No connection can be made, whether through the Azure Portal, via pgAdmin4, or through the application.

There was a critical health event when our issues begun. It has logs:

"properties": {
        "title": "Unknown Reason",
        "details": "",
        "currentHealthStatus": "Unavailable",
        "previousHealthStatus": "Available",
        "type": "Downtime",
        "cause": "PlatformInitiated"
    },

As far as we can tell, the only related event was a connection request made to the database. The query made is one that has been run many times before, and just a simple SQL Select with one WHERE.

What we have tried to troubleshoot:

  • Restarting the server - This failed with an Internal Server Error
  • Stopping the server completely - The server is still in a stopping state, and has been for over an hour. The in progress health event has:
"properties": {
        "title": "Stopped",
        "details": "",
        "currentHealthStatus": "Degraded",
        "previousHealthStatus": "Unavailable",
        "type": "Downtime",
        "cause": "UserInitiated"
    },

Even though the log is titled "Stopped" the status on the overview page is still "Stopping"

This is all happening in only one of our three environments (separate resource groups). All resource groups are running the same instance of the code, and are currently on the same database migration. All three database servers have the same settings (Burstable, Standard B1ms compute, 32 GB storage). Other environments are working fine.

Our region is Australia East with 1 availability zone. High availability is not enabled.

What could be causing this issue?

Azure Database for PostgreSQL
{count} votes

Accepted answer
  1. Saraswathi Devadula 5,570 Reputation points Microsoft External Staff Moderator
    2025-05-19T04:05:51.0366667+00:00

    Hello Lachlan

    Following up on our remote session discussion, the Azure Database for PostgreSQL Flexible Server in the Azure portal is currently stuck in the stopping state.

    As mentioned, we attempted to mitigate the server from the backend.

    I hope this has been helpful!

    Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    If this answers your query, do click Accept Answer and Upvote for was this answer helpful.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Ariel Cezar Manansala 0 Reputation points
    2025-05-19T01:23:50.8666667+00:00

    always put your brach main with your own security lock # Afro21457

    0 comments No comments

Your answer

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