You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/how-to-manage-database-account.yml
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
description: Learn how to manage Azure Cosmos DB resources by using the Azure portal, PowerShell, CLI, and Azure Resource Manager templates.
6
6
author: markjbrown
7
7
ms.author: mjbrown
8
-
ms.date: 06/26/2025
8
+
ms.date: 04/21/2026
9
9
ms.service: azure-cosmos-db
10
10
ms.subservice: nosql
11
11
ms.topic: how-to
@@ -111,37 +111,42 @@ procedureSection:
111
111
- title: |
112
112
Add or remove regions from your database account
113
113
summary: |
114
+
> [!TIP]
115
+
> When a new region is added, all data must be fully replicated and committed into the new region before the region is marked as available. The amount of time this operation takes depends upon how much data is stored within the account. If an [asynchronous throughput scaling operation](scaling-provisioned-throughput-best-practices.md#background-on-scaling-rus) is in progress, the throughput scale-up operation is paused and resumes automatically when the add/remove region operation is complete. Additionally, when removing an existing region, all replication across regions (within [partition sets](./global-distribution.md)) must complete before the region is marked as unavailable.
116
+
<!--
114
117
> [!NOTE]
115
118
> Adding or removing a region is an asynchronous operation that performs consistency checks and transfers data. This can result in long execution times, possibly many hours, depending on the amount of data. During this time, other operations that need to update the account aren't allowed.
116
119
117
120
> [!IMPORTANT]
118
121
> When you add a region, you're billed for the additional RU/s and storage copied to the region.
122
+
-->
119
123
steps:
120
124
- |
121
125
Sign in to [Azure portal](https://portal.azure.com).
122
126
- |
123
127
Go to your Azure Cosmos DB account and select **Replicate data globally** in the resource menu.
124
128
- |
125
129
Select **Manage regions** to open the **Manage regions** pane.
126
-
130
+
<!--
127
131
:::image type="content" source="./media/how-to-manage-database-account/manage-regions.png" alt-text="Screenshot of the Replicate data globally page with manage regions selected.":::
128
-
132
+
-->
129
133
- |
130
134
To add a region, select a region from the **Region** dropdown. If you want to enable availability zone support for the region, select the **Availability zone** checkbox, then select **Add**. To learn more, see [Availability zone support for Azure Cosmos DB](/azure/reliability/reliability-cosmos-db-nosql#availability-zone-support).
131
135
- |
132
136
To remove a region, select the delete icon next to the region you want to remove.
133
-
137
+
<!--
134
138
:::image type="content" source="./media/how-to-manage-database-account/manage-regions-pane.png" alt-text="Screenshot of the Replicate data globally page and the Manage regions pane.":::
135
-
139
+
-->
136
140
In single-region write mode, you can't remove the write region. You must fail over to a different region before you can delete the current write region.
137
141
138
142
In multi-region write mode, you can add or remove any region, as long as at least one region remains.
In the **Configuration** section of the **Replicate data globally** page, select the **Multi-region writes** checkbox to enable multi-region writes. It will ask for a confirmation to enable this feature. After you enable multi-region writes, all the read regions that you currently have on the account become read and write regions.
143
-
147
+
<!--
144
148
:::image type="content" source="./media/how-to-manage-database-account/configure-multi-region-writes.png" alt-text="Screenshot of the Replicate data globally page, highlighting the Multi-region writes checkbox.":::
149
+
-->
145
150
- title: |
146
151
Enable service-managed failover for your Azure Cosmos DB account
147
152
summary: |
@@ -168,19 +173,21 @@ procedureSection:
168
173
From your Azure Cosmos DB account, open the **Replicate data globally** pane.
169
174
- |
170
175
At the top of the pane, select **Offline region**.
171
-
176
+
<!--
172
177
:::image type="content" source="./media/how-to-manage-database-account/offline-region.png" alt-text="Screenshot that shows the offline region portal menu.":::
178
+
-->
173
179
- |
174
180
Review the warning message indicating the possibility of data loss due to un-replicated writes not being available in the region that will be promoted to the new write region based on the failover priority.
175
181
- |
176
182
Select the region to be marked offline, check the box titled **I understand and agree to offline the currently selected region**, and click the **Offline region** button.
177
-
183
+
<!--
178
184
:::image type="content" source="./media/how-to-manage-database-account/offline-region-pane.png" alt-text="Screenshot that shows the offline region warning.":::
185
+
-->
179
186
- |
180
187
Once completed, the region with the highest failover priority is promoted to the new write region, while the original write region is marked offline.
181
-
188
+
<!--
182
189
:::image type="content" source="./media/how-to-manage-database-account/offline-region-complete.png" alt-text="Screenshot that shows the offline region complete.":::
183
-
190
+
-->
184
191
The Azure Cosmos DB service team handles bringing back the region online. If the region is offline during an outage, it might take more than three days to restore it online, depending on the impact's severity. For a disaster recovery drill where a region is taken offline, please create a support ticket request to bring the region back online.
185
192
186
193
In the case of a single-write region, if the write region is offline during the drill or an outage, bringing the region back online restores it as a 'read region'. Afterward, you can perform the 'change write region' operation to promote the region back to a write region.
@@ -197,13 +204,17 @@ procedureSection:
197
204
- |
198
205
At the top of the pane, select **Configure failvoer policy**.
199
206
207
+
<!--
200
208
:::image type="content" source="./media/how-to-manage-database-account/configure-failover-policy.png" alt-text="Screenshot showing the Replicate data globally menu.":::
209
+
-->
201
210
- |
202
211
On the **Configure failover policy** pane, drag and drop the priorities of read regions to be failed over to as needed.
203
212
- |
204
213
Select **OK** to save the failover priority configuration.
205
214
215
+
<!--
206
216
:::image type="content" source="./media/how-to-manage-database-account/configure-failover-policy-pane.png" alt-text="Screenshot of the Configure failover policy portal menu.":::
217
+
-->
207
218
- title: |
208
219
Change write region for your Azure Cosmos DB Account
0 commit comments