Hi @Mateusz Gródek,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
If your Azure Database for PostgreSQL Flexible Server has a 7-day backup retention policy but no restore points appear in the Backup and Restore menu, it could be there are no backups available within the retention period.
you can try following steps to troubleshoot:
Check the status of the backup:
You can execute the below mentioned command to verify status of the backups which provides list of backups available for the PostgreSQL flexible server. You can execute this command in Azure CLI.
az postgres flexible-server backup list -g <Resourcegroupname>-n <Servername>
Check the status of the server:
1.Open a command prompt or terminal window.
2.Log in to your Azure account using the 'az login' command.
3.Run the following command to check the status of your PostgreSQL server:
az postgres flexible-server show --resource-group <resource-group-name> --name <server-name>
I would request you to refer the below mentioned link.
https://learn.microsoft.com/en-us/cli/azure/postgres/flexible-server?view=azure-cli-latest
https://learn.microsoft.com/en-us/cli/azure/postgres/flexible-server/backup?view=azure-cli-latest
Replace <resource-group-name> and <server-name> with the appropriate values for your environment. This command returns the current state of the server, which can be one of the following values:
Ready: The server is running and ready to accept connections.
Creating: The server is being created.
Updating: The server is being updated.
Deleting: The server is being deleted.
Failed: The server has encountered an error and cannot be started.
If the server is not running or is experiencing issues, you may need to resolve these issues before attempting to restore the database.
I hope this information helps. Please do let us know if you have any further queries.
If the answer is helpful, please click "Accept Answer" and "Upvote it".