Skip to content

Commit 742c21a

Browse files
committed
Fixing code samples
1 parent 736ffd8 commit 742c21a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/cosmos-db/nosql/distribute-throughput-across-partitions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.date: 12/18/2023
1515

1616
By default, Azure Cosmos DB distributes the provisioned throughput of a database or container equally across all physical partitions. However, scenarios may arise where due to a skew in the workload or choice of partition key, certain logical (and thus physical) partitions need more throughput than others. For these scenarios, Azure Cosmos DB gives you the ability to redistribute your provisioned throughput across physical partitions. Redistributing throughput across partitions helps you achieve better performance without having to configure your overall throughput based on the hottest partition.
1717

18-
The throughput redistributing feature applies to databases and containers using provisioned throughput (manual and autoscale) and doesn't apply to serverless containers. You can change the throughput per physical partition using the Azure Cosmos DB PowerShell commands.
18+
The throughput redistributing feature applies to databases and containers using provisioned throughput (manual and autoscale) and doesn't apply to serverless containers. You can change the throughput per physical partition using the Azure Cosmos DB PowerShell or Azure CLI commands.
1919

2020
## When to use this feature
2121

@@ -109,19 +109,19 @@ az extension add \
109109

110110
#### [API for NoSQL](#tab/nosql/azure-powershell)
111111

112-
Use the `Get-AzCosmosDBSqlContainerPerPartitionThroughput` command to read the current RU/s on each physical partition.
112+
Use the `Get-AzCosmosDBSqlContainerPerPartitionThroughput` or `Get-AzCosmosDBSqlDatabasePerPartitionThroughput` command to read the current RU/s on each physical partition.
113113

114114
```azurepowershell-interactive
115115
116116
// Container with dedicated RU/s
117-
$somePartitionsDedicatedContainer = Get-AzCosmosDBSqlContainerPerPartitionThroughput `
117+
$somePartitionsDedicatedRUContainer = Get-AzCosmosDBSqlContainerPerPartitionThroughput `
118118
-ResourceGroupName "<resource-group-name>" `
119119
-AccountName "<cosmos-account-name>" `
120120
-DatabaseName "<cosmos-database-name>" `
121121
-Name "<cosmos-container-name>" `
122122
-PhysicalPartitionIds ("<PartitionId>", "<PartitionId">)
123123
124-
$allPartitionsDedicatedContainer = Get-AzCosmosDBSqlContainerPerPartitionThroughput `
124+
$allPartitionsDedicatedRUContainer = Get-AzCosmosDBSqlContainerPerPartitionThroughput `
125125
-ResourceGroupName "<resource-group-name>" `
126126
-AccountName "<cosmos-account-name>" `
127127
-DatabaseName "<cosmos-database-name>" `
@@ -166,18 +166,18 @@ az cosmosdb sql container retrieve-partition-throughput \
166166

167167
#### [API for MongoDB](#tab/mongodb/azure-powershell)
168168

169-
Use the `AzCosmosDBMongoDBCollectionPerPartitionThroughput` command to read the current RU/s on each physical partition.
169+
Use the `Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput` command to read the current RU/s on each physical partition.
170170

171171
```azurepowershell-interactive
172172
// Container with dedicated RU/s
173-
$somePartitionsDedicatedContainer = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput `
173+
$somePartitionsDedicatedRUContainer = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput `
174174
-ResourceGroupName "<resource-group-name>" `
175175
-AccountName "<cosmos-account-name>" `
176176
-DatabaseName "<cosmos-database-name>" `
177177
-Name "<cosmos-collection-name>" `
178178
-PhysicalPartitionIds ("<PartitionId>", "<PartitionId">, ...)
179179
180-
$allPartitionsDedicatedContainer = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput `
180+
$allPartitionsDedicatedRUContainer = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput `
181181
-ResourceGroupName "<resource-group-name>" `
182182
-AccountName "<cosmos-account-name>" `
183183
-DatabaseName "<cosmos-database-name>" `
@@ -363,7 +363,7 @@ Use the `Update-AzCosmosDBSqlContainerPerPartitionThroughput` command for contai
363363
```azurepowershell-interactive
364364
365365
// Container with dedicated RU/s
366-
$resetPartitionsDedicatedContainer = Update-AzCosmosDBSqlContainerPerPartitionThroughput `
366+
$resetPartitionsDedicatedRUContainer = Update-AzCosmosDBSqlContainerPerPartitionThroughput `
367367
-ResourceGroupName "<resource-group-name>" `
368368
-AccountName "<cosmos-account-name>" `
369369
-DatabaseName "<cosmos-database-name>" `

0 commit comments

Comments
 (0)