To enforce cross-region disaster recovery (DR) protection and read scalability across Azure cloud regions, ensure that the Cross-Region Replication feature is enabled and configured for your Microsoft Azure Cosmos DB for MongoDB clusters.
efficiency
Cross-region replication enables the asynchronous copying of data from your primary Azure Cosmos DB for MongoDB cluster to a read-only replica in a different Azure cloud region. In the event of a regional outage, this replica can be promoted to a new read-write primary cluster, allowing applications to maintain their existing connection strings for continuous operation.
Audit
To determine if cross-region replication is enabled your Azure Cosmos DB for MongoDB clusters, perform the following operations:
Remediation / Resolution
To enable cross-region replication for your Microsoft Azure Cosmos DB for MongoDB accounts, perform the following operations:
Enabling cross-region replication for Microsoft Azure Cosmos DB for MongoDB accounts using Azure Command Line Interface (Azure CLI) is not currently supported.References
- Azure Official Documentation
- What is Azure Cosmos DB for MongoDB?
- Cross-region replication in Azure Cosmos DB for MongoDB vCore
- Manage cross-region replication on your Azure Cosmos DB for MongoDB vCore cluster
- Azure Command Line Interface (CLI) Documentation
- az account list
- az account set
- az cosmosdb mongocluster list
- az cosmosdb mongocluster show