If your Azure Database for PostgreSQL - Flexible server is currently unavailable, it could be due to various reasons, including subscription issues or server deletion. If the server has been deleted, you can restore it by following these steps:
- Check Activity Log: Go to the Azure portal, select the Monitor service, and then select Activity Log. Filter for the Delete PostgreSQL Server operation to see if the server was deleted.
- Copy Resource ID: If you find the deletion event, copy the
resourceIdandsubmissionTimestampfrom the JSON output. - Use REST API to Restore: Navigate to the Azure Database for PostgreSQL flexible server Create Server REST API page. Use the
Try Ittab to sign in and provide the necessary parameters based on theresourceIdyou copied. Make sure to specify thepointInTimeUTCusing thesubmissionTimestampyou obtained. - Request Body: Your request body should look like this:
Replace the placeholders with the appropriate values.{ "location": "Your Server Location", "properties": { "pointInTimeUTC": "submissionTimestamp", "createMode": "ReviveDropped", "sourceServerResourceId": "resourceId" } }
If the server is simply unavailable due to subscription issues, you may need to resolve the payment issue to regain access to your database.
For further assistance, consider checking the Azure support documentation or contacting Azure support directly if you need more help with your specific situation.