How to restore Azure cosmos MongoDB after accidentally being deleted

Dat Xuan Nguyen 0 Reputation points
2025-09-03T09:53:28.79+00:00

Hi, i accidentally delete Azure Cosmos DB vCore - MongoDB with terraform and now i can't restore it back. Im wondering is there anyway to restore this?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 17,960 Reputation points MVP Moderator
    2025-09-03T10:09:34.1666667+00:00

    Hi,

    If you've accidentally deleted your Azure Cosmos DB vCore - MongoDB instance, you can potentially restore it using Azure's backup and restore capabilities. Here are the steps you can take:

    Contact Azure Support: You can file a support ticket or call Azure support to request data restoration from automatic online backups. This service is available for selected support plans such as Standard, Developer, and higher tiers. It's not available with the Basic plan.

    Prepare Necessary Information: Before contacting support, ensure you have the following details ready:

    • Your subscription ID.
      • The name of the deleted Azure Cosmos DB account.
        • If applicable, the names of the deleted databases or containers.
          • Information about any new accounts, databases, or containers created with the same names as the deleted ones.
          Backup Retention: Azure Cosmos DB provides automated backups, and you can restore data to any point within the backup retention period, which is typically up to 35 days.

    For more detailed guidance, you can refer to the Azure documentation on requesting data restoration from an Azure Cosmos DB backup.

    If you need further assistance, reaching out to Azure support would be the best course of action.

    Thanks

    Deepanshu

    0 comments No comments

  2. Kalyani Kondavaradala 4,600 Reputation points Microsoft External Staff Moderator
    2025-09-05T09:32:38.5133333+00:00

    Hi Dat Xuan Nguyen,

    You can restore a deleted Azure Cosmos DB vCore - MongoDB instance within 30 days after deletion. Please refer to the below documents for two different types of backups of CosmosDB

    If you are unable to restore from your end you can raise the support ticket to restore your data. if you are having developer plan then you won't be able to raise the support ticket.

    If you are having Azure standard plan or higher than that, you will be able to raise the support ticket to recover your data. Here is the article for that you can check and verify yours. https://azure.microsoft.com/en-us/support/plans

    Steps to raise ticket for Standard and higher support plans:

    1. Sign in to the Azure Portal.
    2. In the top search bar, type "Help + support" and open it.
    3. Click "Create a support request".
    4. Fill the form as follows:
      • Service: Search for Azure Cosmos DB
        • Resource: Select your Cosmos DB account
          • Problem subtype: Look for Backup & Restore or Data recovery.
          1. Severity level:
            • If you need faster response, you’d have to upgrade to Standard or Professional Direct support.
            1. Provide details:
              • When the data got deleted.
                • Subscription ID & resource group.
                  • Request to restore the account/cluster.
                  1. Submit the ticket.

    if you are seeing only azure documents and videos just scroll down a bit check if you are able to see the contact support option like below?

    User's image

    User's image

    If you are unable to recover the db or raise the ticket, please let us know.

    If the provided information answers your query, do click "Upvote" and "Accept Answer", it will help others who might be facing similar challenges.

    Thanks!

    Kalyani


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.