question

RaviTejaManchikanti-5724 avatar image
0 Votes"
RaviTejaManchikanti-5724 asked ·

Unable perform Offline region from Rest API for Cosmos DB Account

I was using below API to offline the region from Cosmos DB Account

https://docs.microsoft.com/en-us/rest/api/cosmos-db-resource-provider/databaseaccounts/offlineregion

Im getting an error like below

"offlineRegion capability not enabled for database account coresql-db. ActivityId: ec0d938f-5890-4a22-8c8a-77487b1318af, Microsoft.Azure.Documents.Common/2.11.0"

Am I missing anything to enable on portal ? Could you please help !

azure-cosmos-db
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI Raviteja

If the reply helped you please mark it as an answer so that it can help others as well.

Thanks
Navtej S

0 Votes 0 ·

1 Answer

NavtejSaini-MSFT avatar image
1 Vote"
NavtejSaini-MSFT answered ·

Hi RaviTeja

To offline any region from the cosmos db account , we need to remove the region from the replicate data globally blade. Please find the below documentation that explains regarding the process to add/remove the regions.

Add/Remove Regions

About the API:

This API is managed by product team internally and this shouldn’t be invoked by customers.

1) Cosmos DB automatically triggers failovers of accounts when you enable “Automatic Failover”. The current write region is marked offline and the other regions are promoted as the write region (Based on how you configure them).

2) Automatic failover is part of the DRI and is nearly immediate. SDK is multi-homing enabled and will failover to right region in your priority. You can test how this works with controlled manual failover today. Please refer to : High Avail

Please let me know of any concerns.

Thanks

Navtej S


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.