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/merge.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ Install-Module @parameters
92
92
93
93
Use [`az extension add`](/cli/azure/extension#az-extension-add) to install the [cosmosdb-preview](https://github.com/azure/azure-cli-extensions/tree/main/src/cosmosdb-preview) Azure CLI extension.
94
94
95
+
95
96
```azurecli-interactive
96
97
az extension add \
97
98
--name cosmosdb-preview
@@ -139,6 +140,16 @@ az cosmosdb sql container merge \
139
140
--name '<cosmos-container-name>'
140
141
```
141
142
143
+
For **shared throughput databases**, start the merge by using `az cosmosdb sql database merge`.
144
+
145
+
146
+
```azurecli
147
+
az cosmosdb sql database merge \
148
+
--account-name '<cosmos-account-name>'
149
+
--name '<cosmos-database-name>'
150
+
--resource-group '<resource-group-name>'
151
+
```
152
+
142
153
#### [API for MongoDB](#tab/mongodb/azure-powershell)
143
154
144
155
Use `Invoke-AzCosmosDBMongoDBCollectionMerge` with the `-WhatIf` parameter to preview the merge without actually performing the operation.
@@ -199,8 +210,6 @@ To enroll in the preview, your Azure Cosmos DB account must meet all the followi
199
210
200
211
- Your Azure Cosmos DB account uses API for NoSQL or MongoDB with version >=3.6.
201
212
- Your Azure Cosmos DB account is using provisioned throughput (manual or autoscale). Merge doesn't apply to serverless accounts.
202
-
- Currently, merge isn't supported for shared throughput databases. You may enroll an account that has both shared throughput databases and containers with dedicated throughput (manual or autoscale).
203
-
- However, only the containers with dedicated throughput are able to be merged.
204
213
- Your Azure Cosmos DB account is a single-write region account (merge isn't currently supported for multi-region write accounts).
205
214
- Your Azure Cosmos DB account doesn't use any of the following features:
0 commit comments