共用方式為


az cosmosdb sql container throughput

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入瞭解擴充功能

在 Azure Cosmos DB 帳戶下管理 SQL 容器的輸送量。

命令

名稱 Description 類型 狀態
az cosmosdb sql container throughput migrate

在自動調整和手動布建之間移轉 SQL 容器的輸送量。

核心 加語
az cosmosdb sql container throughput migrate (cosmosdb-preview 擴充功能)

在自動調整和手動布建之間移轉 SQL 容器的輸送量。

外延 加語
az cosmosdb sql container throughput show

取得 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

核心 加語
az cosmosdb sql container throughput show (cosmosdb-preview 擴充功能)

取得 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

外延 加語
az cosmosdb sql container throughput update

更新 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

核心 加語
az cosmosdb sql container throughput update (cosmosdb-preview 擴充功能)

更新 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

外延 加語

az cosmosdb sql container throughput migrate

在自動調整和手動布建之間移轉 SQL 容器的輸送量。

az cosmosdb sql container throughput migrate --account-name
                                             --database-name
                                             --name
                                             --resource-group
                                             --throughput-type {autoscale, manual}

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

容器名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--throughput-type -t

要移轉至的輸送量類型。

接受的值: autoscale, manual
全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az cosmosdb sql container throughput migrate (cosmosdb-preview 擴充功能)

在自動調整和手動布建之間移轉 SQL 容器的輸送量。

az cosmosdb sql container throughput migrate --account-name
                                             --database-name
                                             --name
                                             --resource-group
                                             --throughput-type {autoscale, manual}

範例

在自動調整和手動布建之間移轉 SQL 容器的輸送量。

az cosmosdb sql container throughput migrate --resource-group resource_group --account-name database_account_name --database-name parent_database_name --name name_of_collection_needs_to_be_restored --throughput-type Manual

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

容器名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--throughput-type -t

要移轉至的輸送量類型。

接受的值: autoscale, manual
全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az cosmosdb sql container throughput show

取得 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

az cosmosdb sql container throughput show --account-name
                                          --database-name
                                          --name
                                          --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

容器名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az cosmosdb sql container throughput show (cosmosdb-preview 擴充功能)

取得 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

az cosmosdb sql container throughput show --account-name
                                          --database-name
                                          --name
                                          --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

容器名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az cosmosdb sql container throughput update

更新 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

az cosmosdb sql container throughput update --account-name
                                            --database-name
                                            --name
                                            --resource-group
                                            [--max-throughput]
                                            [--throughput]

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

容器名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

--max-throughput

輸送量資源上限可以調整為 (RU/秒)。 提供資源啟用自動調整時。 最小值可以是 4000 (RU/秒)。

--throughput

SQL 容器的輸送量(RU/秒)。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az cosmosdb sql container throughput update (cosmosdb-preview 擴充功能)

更新 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

az cosmosdb sql container throughput update --account-name
                                            --database-name
                                            --name
                                            --resource-group
                                            [--max-throughput]
                                            [--throughput]
                                            [--throughput-buckets]

範例

更新 Azure Cosmos DB SQL 資料庫下 SQL 容器的輸送量。

az cosmosdb sql container throughput update --resource-group resource_group --account-name database_account_name --database-name parent_database_name --name name_of_collection_needs_to_be_restored --throughput 1000

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

容器名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

--max-throughput

輸送量資源上限可以調整為 (RU/秒)。 提供資源啟用自動調整時。 最小值可以是 4000 (RU/秒)。

--throughput

SQL 容器的輸送量(RU/秒)。

--throughput-buckets

輸送量貯體,您可以將它輸入為字串或檔案,例如 --throughput-buckets @throughput-buckets-file.json 或 --throughput-buckets “[ { ”id“: 1, ”maxThroughputPercentage“ : 10 }, { ”id“: 2, ”maxThroughputPercentage“ : 20 } ]”。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。