azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Configure multi-region writes in Azure Cosmos DB for MongoDB: No such option on portal

Open yoshigev opened this issue 2 years ago • 4 comments

Hi,

I've tried following the instructions on the page, but there is no "Replicate data globally" option on the menu on the portal for "Azure Cosmos DB for MongoDB" resource.

Are these instructions indeed relevant to MongoDB?

Thanks.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

yoshigev avatar Feb 14 '23 14:02 yoshigev

@yoshigev Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Feb 14 '23 16:02 Naveenommi-MSFT

@yoshigev,

I just created a new Azure Cosmos DB for MongoDB account using the Try Azure Cosmos DB free.

image

I was able to see the Replicate data globally menu option within the Settings section.

Can you share a screenshot of the missing setting?

#reassign:seesharprun

seesharprun avatar Feb 14 '23 17:02 seesharprun

Thanks @seesharprun for the quick response.

This is the screenshot with the missing option: image

If it's helpful, this is the Resource JSON:

Resource JSON
{
    "id": "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.DocumentDB/databaseAccounts/xxx",
    "name": "xxx",
    "location": "Germany West Central",
    "type": "Microsoft.DocumentDB/databaseAccounts",
    "kind": "MongoDB",
    "tags": {},
    "systemData": {
        "createdAt": "2022-02-11T07:54:08.2218443Z"
    },
    "properties": {
        "provisioningState": "Succeeded",
        "documentEndpoint": "https://xxx.documents.azure.com:443/",
        "sqlEndpoint": "https://xxx.documents.azure.com:443/",
        "mongoEndpoint": "https://xxx.mongo.cosmos.azure.com:443/",
        "enableAutomaticFailover": false,
        "enableMultipleWriteLocations": false,
        "enablePartitionKeyMonitor": false,
        "isVirtualNetworkFilterEnabled": false,
        "virtualNetworkRules": [],
        "EnabledApiTypes": "MongoDB",
        "disableKeyBasedMetadataWriteAccess": false,
        "enableFreeTier": false,
        "enableAnalyticalStorage": false,
        "analyticalStorageConfiguration": null,
        "instanceId": "xxx",
        "databaseAccountOfferType": "Standard",
        "ipRangeFilter": "",
        "consistencyPolicy": {
            "defaultConsistencyLevel": "Session",
            "maxIntervalInSeconds": 5,
            "maxStalenessPrefix": 100
        },
        "apiProperties": {
            "serverVersion": "4.0"
        },
        "configurationOverrides": {
            "EnableBsonSchema": "True"
        },
        "writeLocations": [
            {
                "id": "xxx-germanywestcentral",
                "locationName": "Germany West Central",
                "documentEndpoint": "https://xxx-germanywestcentral.documents.azure.com:443/",
                "provisioningState": "Succeeded",
                "failoverPriority": 0,
                "isZoneRedundant": true
            }
        ],
        "readLocations": [
            {
                "id": "xxx-germanywestcentral",
                "locationName": "Germany West Central",
                "documentEndpoint": "https://xxx-germanywestcentral.documents.azure.com:443/",
                "provisioningState": "Succeeded",
                "failoverPriority": 0,
                "isZoneRedundant": true
            }
        ],
        "locations": [
            {
                "id": "xxx-germanywestcentral",
                "locationName": "Germany West Central",
                "documentEndpoint": "https://xxx-germanywestcentral.documents.azure.com:443/",
                "provisioningState": "Succeeded",
                "failoverPriority": 0,
                "isZoneRedundant": true
            }
        ],
        "failoverPolicies": [
            {
                "id": "xxx-germanywestcentral",
                "locationName": "Germany West Central",
                "failoverPriority": 0
            }
        ],
        "cors": [],
        "capabilities": [
            {
                "name": "EnableMongo"
            },
            {
                "name": "EnableServerless"
            }
        ],
        "backupPolicy": {
            "type": "Continuous"
        }
    }
}

yoshigev avatar Feb 15 '23 11:02 yoshigev

@nayakshweta, can you help with this issue? I'm unable to reproduce it.

#reassign:nayakshweta

seesharprun avatar Feb 15 '23 16:02 seesharprun

Hello @yoshigev!

While Azure Cosmos DB is available in the Germany West Central region, Azure Germany is physically isolated from other instances of Azure. This means that you will not be able to globally replicate your data from that region to other Azure regions.

Thanks for your patience while we sought an answer.

#please-close

seesharprun avatar Mar 16 '23 16:03 seesharprun