question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CosmosDb - Parameter 'ConsistencyPolicy.max_interval_in_seconds' must be less than 100. Need to set to 300 for multi-region.

See original GitHub issue

Description

Outline the issue here: To enable multi-region with bounded staleness, it is required to set the maximum lag time to 5 minutes (300 seconds). This is possible in the Azure portal.

The CLI has validation that rejects any number higher than 100. I don’t think this validation is correct.


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: pip CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: azure-cli (2.0.12)

acr (2.0.4) acs (2.0.6) appservice (0.1.6) batch (2.0.4) billing (0.1.0) cdn (0.0.2) cloud (2.0.2) cognitiveservices (0.1.2) command-modules-nspkg (2.0.0) component (2.0.4) configure (2.0.6) consumption (0.1.0) container (0.1.1b4) core (2.0.12) cosmosdb (0.1.6) dla (0.0.6) dls (0.0.6) documentdb (0.1.1b2) feedback (2.0.2) find (0.2.2) interactive (0.3.1) iot (0.1.5) keyvault (2.0.8) lab (0.0.4) monitor (0.0.4) network (2.0.6) nspkg (3.0.0) profile (2.0.4) rdbms (0.0.1) redis (0.2.3) resource (2.0.6) role (2.0.4) sf (1.0.1) sql (2.0.3) storage (2.0.6) vm (2.0.12)

Python (Windows) 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)]

Python location ‘C:\Python35\python.exe’ OS Version: What OS and version are you using?
Answer here: Windows 10 Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: powershell

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shurdcommented, Jun 5, 2019

The CLI now uses version 0.5.2 of the SDK management, which contains this fix.

1reaction
andscho-msftcommented, Oct 17, 2017

Ping

Read more comments on GitHub >

github_iconTop Results From Across the Web

Consistency levels in Azure Cosmos DB - Microsoft Learn
Azure Cosmos DB has five consistency levels to help balance eventual consistency, availability, and latency trade-offs.
Read more >
Deploying Cosmos DB (with Mongo API) in Azure using ARM
Below is a sample ARM template to deploy Cosmos DB with MongoDB API. As you look through the template, you can find guidance...
Read more >
azure.cosmosdb.Account - Pulumi
Specifies a consistency_policy resource, used to define the consistency policy for this CosmosDB account. geoLocations This property is required.
Read more >
Configure multi-region write in Azure Cosmos DB SQL API
Full series information: https://aka.ms/learnlive-azure- cosmosdb -certMore info here: https://aka.ms/learnlive-azure- cosmosdb -cert-Ep20Follow ...
Read more >
Introduction to Azure Cosmos DB | Microsoft Docs
When your storage and throughput needs to be scaled, Cosmos DB ... typical 1-KB item, Cosmos DB guarantees end-to-end latency of reads under...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found