How to revive dropped Azure PostgreSQL flexible server with databases and data?

nico 20 Reputation points
2025-06-12T06:39:39.6633333+00:00

Testing some backup/recovery scenarios for my deployment.

One of them would be accidentally destroying an environment via terraform destroy, including a flexible server for PostgreSQL with relevant data running in there.

Now, according to Azure's documentation you can do that via the API up to five days after the deletion, and you can specify a point in time there (for which you are supposed to take the timepoints of the destruction event, plus 5 or 10 minutes, doc is inconsistent there).

Then there is the CLI documentation with revive-dropped where you can not specify a point in time - my assumption would be it just restores to the latest known state before deletion.

Both methods work, the deleted server reappears. But: no databases or data is present from before the deletion. I have tried multiple times, with/without UTC conversion, via the API (with 0/5/10 minutes added to deletion events, or using a time in point before the deletion), with the CLI. Every time, the server reappears 'empty', i.e. only with the system databases.

How do I restore the databases before the deletion event? Am I missing something?

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Vijayalaxmi Kattimani 3,065 Reputation points Microsoft External Staff Moderator
    2025-06-17T01:33:58.7566667+00:00

    Hi nico

    Thanks for your post.

    As a feature, you can directly submit this as an edit on the document page itself. This will be in the form of a GitHub changer and the team will review.

    You can also use the feedback link at the bottom of the document to post this as well.

    Engineers actively take a look and would be able to address this.
    User's image

    Your feedback is important so please take a moment to submit feedback to Microsoft by clicking the “Provide Product Feedback” link at the bottom of the document page. They often act on well-documented issues like this. 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.


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.