To address the issue of missing data in Azure Cosmos DB, it is crucial to act quickly. Here are the steps you should follow:
- Contact Azure Support: Since data loss can be critical, you should contact Azure support as soon as possible. It is recommended to do this within 8 hours of discovering the data loss to ensure the Azure Cosmos DB team can assist you effectively.
- Prepare Information: Before reaching out to support, gather the following information to expedite the process:
- Azure Cosmos DB account name
- Database names and container names that were affected
- The approximate time when the data was lost or deleted (in UTC)
- Any other relevant details that might help in identifying the issue.
- Backup Retention: Ensure that the backup retention for your account is set to at least seven days. If it’s not, consider increasing it immediately to prevent further data loss.
- Restoration Process: Once you have contacted support, they will guide you through the restoration process. Note that the restored data will be placed in a new Azure Cosmos DB account, and you will need to migrate it back to your original account if necessary.
- Post-Restore Actions: After the restoration, inspect the recovered data to ensure it meets your expectations before migrating it back to the primary account.
Taking these steps will help you recover the missing data and minimize disruption to your operations.
References: