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
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
-
162
158
#### [API for NoSQL](#tab/nosql/azure-cli)
163
159
164
160
For **provisioned throughput** containers, start the merge by using [`az cosmosdb sql container merge`](/cli/azure/cosmosdb/sql/container#az-cosmosdb-sql-container-merge).
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
-
262
231
#### [API for MongoDB](#tab/mongodb/azure-cli)
263
232
264
233
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