One Developer
One Developer

Reputation: 566

Azure Cosmos DB - How to bring the Primary Region Offline and force Automatic failover?

I have provisioned Cosmos DB with the following configurations

  1. West US - Primary => Read & Write
  2. East US - Secondary => Read

enter image description here

I want to prove that when the primary goes offline the secondary will become the primary and function.

I could successfully perform the manual failover however I don't know how to take the primary database offline (Note: I could delete only the secondary replica)?

Upvotes: 0

Views: 1057

Answers (2)

Stanley Gong
Stanley Gong

Reputation: 12153

Juts a supplementary here. As @MarkBrown indicated, you can use manual failover, and this is an official document for it

Upvotes: 1

Mark Brown
Mark Brown

Reputation: 8763

You cannot take a region "offline" and removing the region is not possible while it is functioning at the primary write region. If you want to test failover, use the manual failover. This is sufficient for BCDR testing scenarios.

Upvotes: 1

Related Questions