az batch pool node-counts

取得 Batch 集區的節點計數。

命令

名稱 Description 類型 狀態
az batch pool node-counts list

取得依集區分組之每個狀態的計算節點數目。

核心 GA

az batch pool node-counts list

取得依集區分組之每個狀態的計算節點數目。

請注意,傳回的數位不一定是最新的。 如果您需要確切的節點計數,請使用清單查詢。

az batch pool node-counts list [--account-endpoint]
                               [--account-key]
                               [--account-name]
                               [--filter]

選擇性參數

--account-endpoint

Batch 服務端點。 或者,由環境變數設定:AZURE_BATCH_ENDPOINT。

--account-key

Batch 帳戶金鑰。 或者,由環境變數設定:AZURE_BATCH_ACCESS_KEY。

--account-name

Batch 帳戶名稱。 或者,由環境變數設定:AZURE_BATCH_ACCOUNT。

--filter

OData $filter 子句。 如需建構此篩選的詳細資訊,請參閱 https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch

全域參數
--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 來取得完整偵錯記錄。