I accidentally did irreversible changes to Cosmos DB container, backup setting is not setup

Aleksandr Glushko 0 Reputation points
2025-03-03T14:29:45.0833333+00:00

I have made changes to the container in Cosmos DB, not having backup policy setup and need to revert the changes back. How can I do it?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,786 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 14,580 Reputation points MVP
    2025-03-03T14:39:57.77+00:00

    Hello Aleksandr, Welcome to MS Q&A!

    Reverting changes in a Cosmos DB container without a backup policy can be challenging, but here are a couple of approaches you might consider:

    Manual Reversion: If you have documentation or logs of the previous state, you can manually update the container to restore the correct data. This requires careful validation to ensure accuracy.

    Change Feed Utilization: If the change feed is enabled, it can help track modifications. Reviewing it may allow you to identify and revert specific changes.

    Unfortunately, Point-in-Time Restore requires continuous backup to be enabled, which isn’t available in your case. Based on this, the two options above would be your best alternatives. Let me know if you need further clarification!

    Please check and let us know if any ques

    Kindly accept answer if it helps

    Thanks

    Deepanshu

    1 person found 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.