共用方式為


az batch node scheduling

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

命令

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

停用 Batch 計算節點上的排程。

核心 GA
az batch node scheduling enable

在 Batch 計算節點上啟用排程。

核心 GA

az batch node scheduling disable

停用 Batch 計算節點上的排程。

az batch node scheduling disable --node-id
                                 --pool-id
                                 [--account-endpoint]
                                 [--account-key]
                                 [--account-name]
                                 [--json-file]
                                 [--node-disable-scheduling-option]

範例

停用節點上的排程,並重新排程任何執行中的工作。

az batch node scheduling disable --pool-id pool1 --node-id node1 --node-disable-scheduling-option requeue

必要參數

--node-id

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

--pool-id

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

選擇性參數

--account-endpoint

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

--account-key

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

--account-name

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

--json-file

檔案,其中包含 JSON 中的參數規格(格式化為符合個別 REST API 主體)。 如果指定此參數,則會忽略所有 'Parameters Arguments'。

--node-disable-scheduling-option

在計算節點上停用工作排程時,目前執行的工作該怎麼辦。 預設值為重新排入佇列。 已知值為:“requeue”、“terminate” 和 “taskcompletion”。

全域參數
--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

在 Batch 計算節點上啟用排程。

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

範例

在節點上啟用排程。

az batch node scheduling enable --pool-id pool1 --node-id node1

必要參數

--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。