How to fix sudden POSTGRES database server connectivity issue and failing restart

InnovativeBPS 0 Reputation points
2025-11-04T16:51:31.23+00:00

My database server suddenly began refusing all connections, even in Azure portal. I tried to restart it through the portal UI and the operation failed. I then stopped the server and now it is stuck in "starting" for the last 30 minutes. This is a production-impacting outage. Please escalate under Developer Support plan.

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Kalyani Kondavaradala 4,595 Reputation points Microsoft External Staff Moderator
    2025-11-07T12:54:51.2133333+00:00

    Hi InnovativeBPS,

    If issue still persists can try to restart from Azure CLI:

    1. Attempt a Forced Restart via CLI: If the portal isn't responding, you can try to perform a forced restart using the Azure CLI:
         az postgres flexible-server restart --resource-group <resource_group> --name <server_name>
      
      This can sometimes succeed even if the portal options are failing.
    2. Resource Health: Determine if your server is facing a maintenance operation or resource exhaustion by checking:
      • Resource Health in the Azure portal to see if there are any issues.
      • Resource metrics (CPU, Memory, Storage) to check if any resource is maxed out.
    3. Upgrade/Downgrade SKU: If you suspect performance issues due to your current SKU, consider upgrading to a General Purpose or Memory Optimized SKU for better resources.

    We need the server details to move further on this please provide over Private messaging.

    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.