Share via

Production Cosmos DB on Azure corrupted

MALLESH REDDY 0 Reputation points
2026-04-16T11:48:08.7033333+00:00

I dropped a few collections. This has resulted in the indexes getting messed up. I am unable to recreate indexes.

I need help to restore the previous DB version.

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.


1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 41,386 Reputation points MVP Volunteer Moderator
    2026-04-16T18:18:02.8833333+00:00

    Hello !

    Thank you for posting on MS Learn Q&A.
    I had a similar issue before and this usually does not mean the whole Cosmos DB account is corrupted. I think it is more likely the dropped collections were deleted successfully and now you need either to a restore to recover the old version or to recreate the collections and indexes correctly.

    For Azure Cosmos DB, whether you can restore a previous version depends on your backup mode. If the account uses continuous backup and Azure supports point in time restore within the retention window.

    If it uses periodic backup, restore is typically done by Azure support from available snapshots rather than self service.

    If your issue is specifically that index recreation fails you need to verify whether the failing indexes are unique indexes on Cosmos DB for MongoDB with continuous backup and in that case, you may need to restore the original collection or recreate the collection first and define the unique indexes at creation time.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.