An Azure managed PostgreSQL database service for app development and deployment.
You cannot scale storage while the server is stuck in the “Starting” state. The fix is to enable storage autogrow or manually increase storage through the Azure portal/CLI once the server is responsive again.
If the portal options are disable, you can scale using azure CLI and rest API.
az postgres flexible-server update --resource-group <resource_group> --name <server> --storage-size <storage_size>
PATCH https://management.azure.com/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.DBforPostgreSQL/flexibleServers/<server-name>?api-version=2021-06-01
{
"properties": {
"storage": {
"storageSizeGB": 64
}
}
}
To prevent these kinds of issues in future, please follow the below**
Enable Storage Autogrow**: This automatically increases storage when usage nears capacity.
Monitor Usage Alerts: Set alerts at 80–90% usage to avoid hitting the critical threshold.