Skip to content

Commit 7d25178

Browse files
Learn Editor: Update merge.md
1 parent 4f35885 commit 7d25178

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

articles/cosmos-db/merge.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Install-Module @parameters
9292

9393
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.
9494

95+
9596
```azurecli-interactive
9697
az extension add \
9798
--name cosmosdb-preview
@@ -139,6 +140,16 @@ az cosmosdb sql container merge \
139140
--name '<cosmos-container-name>'
140141
```
141142

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+
142153
#### [API for MongoDB](#tab/mongodb/azure-powershell)
143154

144155
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
199210

200211
- Your Azure Cosmos DB account uses API for NoSQL or MongoDB with version >=3.6.
201212
- 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.
204213
- Your Azure Cosmos DB account is a single-write region account (merge isn't currently supported for multi-region write accounts).
205214
- Your Azure Cosmos DB account doesn't use any of the following features:
206215
- [Point-in-time restore](continuous-backup-restore-introduction.md)

0 commit comments

Comments
 (0)