Skip to content

Commit f7e8374

Browse files
Learn Editor: Update merge.md
1 parent 91e69ae commit f7e8374

File tree

1 file changed

+24
-55
lines changed

1 file changed

+24
-55
lines changed

articles/cosmos-db/merge.md

Lines changed: 24 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ ms.service: cosmos-db
1010
ms.date: 04/28/2023
1111
---
1212

13+
---
14+
title: Merge partitions (preview)
15+
titleSuffix: Azure Cosmos DB
16+
description: Reduce the number of physical partitions used for your container with the merge capability in Azure Cosmos DB.
17+
ms.topic: conceptual
18+
author: seesharprun
19+
ms.author: sidandrews
20+
ms.reviewer: dech
21+
ms.service: cosmos-db
22+
ms.date: 04/28/2023
23+
---
24+
25+
---
26+
title: Merge partitions (preview)
27+
titleSuffix: Azure Cosmos DB
28+
description: Reduce the number of physical partitions used for your container with the merge capability in Azure Cosmos DB.
29+
ms.topic: conceptual
30+
author: seesharprun
31+
ms.author: sidandrews
32+
ms.reviewer: dech
33+
ms.service: cosmos-db
34+
ms.date: 04/28/2023
35+
---
36+
1337
# Merge partitions in Azure Cosmos DB (preview)
1438

1539
[!INCLUDE[NoSQL, MongoDB](includes/appliesto-nosql-mongodb.md)]
@@ -131,34 +155,6 @@ $parameters = @{
131155
Invoke-AzCosmosDBSqlContainerMerge @parameters
132156
```
133157

134-
For **shared-throughput databases**, use `Invoke-AzCosmosDBSqlDatabaseMerge` with the `-WhatIf` parameter to preview the merge without actually performing the operation.
135-
136-
137-
138-
```azurepowershell-interactive
139-
$parameters = @{
140-
ResourceGroupName = "<resource-group-name>"
141-
AccountName = "<cosmos-account-name>"
142-
Name = "<cosmos-database-name>"
143-
WhatIf = $true
144-
}
145-
Invoke-AzCosmosDBSqlDatabaseMerge @parameters
146-
```
147-
148-
Start the merge by running the same command without the `-WhatIf` parameter.
149-
150-
151-
152-
```azurepowershell-interactive
153-
$parameters = @{
154-
ResourceGroupName = "<resource-group-name>"
155-
AccountName = "<cosmos-account-name>"
156-
Name = "<cosmos-database-name>"
157-
}
158-
Invoke-AzCosmosDBSqlDatabaseMerge @parameters
159-
160-
```
161-
162158
#### [API for NoSQL](#tab/nosql/azure-cli)
163159

164160
For **provisioned throughput** containers, start the merge by using [`az cosmosdb sql container merge`](/cli/azure/cosmosdb/sql/container#az-cosmosdb-sql-container-merge).
@@ -232,33 +228,6 @@ $parameters = @{
232228
Invoke-AzCosmosDBMongoDBCollectionMerge @parameters
233229
```
234230

235-
For **shared-throughput** databases, use `Invoke-AzCosmosDBMongoDBDatabaseMerge` with the `-WhatIf` parameter to preview the merge without actually performing the operation.
236-
237-
238-
239-
```azurepowershell-interactive
240-
$parameters = @{
241-
ResourceGroupName = "<resource-group-name>"
242-
AccountName = "<cosmos-account-name>"
243-
Name = "<cosmos-database-name>"
244-
WhatIf = $true
245-
}
246-
Invoke-AzCosmosDBMongoDBDatabaseMerge @parameters
247-
```
248-
249-
Start the merge by running the same command without the `-WhatIf` parameter.
250-
251-
252-
253-
```azurepowershell-interactive
254-
$parameters = @{
255-
ResourceGroupName = "<resource-group-name>"
256-
AccountName = "<cosmos-account-name>"
257-
Name = "<cosmos-database-name>"
258-
}
259-
Invoke-AzCosmosDBMongoDBDatabaseMerge @parameters
260-
```
261-
262231
#### [API for MongoDB](#tab/mongodb/azure-cli)
263232

264233
For **provisioned containers**, start the merge by using [`az cosmosdb mongodb collection merge`](/cli/azure/cosmosdb/mongodb/collection#az-cosmosdb-mongodb-collection-merge).

0 commit comments

Comments
 (0)