az batch node scheduling

管理 Batch 計算節點的工作排程。

命令

名稱 Description 類型 狀態
az batch node scheduling disable

停用指定計算節點上的工作排程。

核心 GA
az batch node scheduling enable

在指定的計算節點上啟用工作排程。

核心 GA

az batch node scheduling disable

停用指定計算節點上的工作排程。

只有當計算節點上已啟用其目前排程狀態時,您才能停用工作排程。

az batch node scheduling disable --node-id
                                 --pool-id
                                 [--account-endpoint]
                                 [--account-key]
                                 [--account-name]
                                 [--node-disable-scheduling-option {requeue, taskcompletion, terminate}]

必要參數

--node-id

您要停用工作排程的計算節點識別碼。

--pool-id

包含計算節點的集區識別碼。

選擇性參數

--account-endpoint

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

--account-key

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

--account-name

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

--node-disable-scheduling-option

預設值為重新排入佇列。

接受的值: requeue, taskcompletion, terminate
全域參數
--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 batch node scheduling enable

在指定的計算節點上啟用工作排程。

只有在計算節點上的目前排程狀態已停用時,才可以在計算節點上啟用工作排程。

az batch node scheduling enable --node-id
                                --pool-id
                                [--account-endpoint]
                                [--account-key]
                                [--account-name]

必要參數

--node-id

您要在其中啟用工作排程的計算節點識別碼。

--pool-id

包含計算節點的集區識別碼。

選擇性參數

--account-endpoint

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

--account-key

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

--account-name

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

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