az batch node

管理 Batch 計算節點。

命令

名稱 Description 類型 狀態
az batch node delete

從指定的集區中移除計算節點。

核心 GA
az batch node file

管理 Batch 計算節點檔案。

核心 GA
az batch node file delete

從計算節點刪除指定的檔案。

核心 GA
az batch node file download

下載節點檔案的內容。

核心 GA
az batch node file list

列出指定計算節點上 [工作] 目錄中的所有檔案。

核心 GA
az batch node file show

取得指定之計算節點檔案的屬性。

核心 GA
az batch node list

列出指定集區中的計算節點。

核心 GA
az batch node reboot

重新開機指定的計算節點。

核心 GA
az batch node reimage

在指定的計算節點上重新安裝作業系統。

核心 GA
az batch node remote-desktop

擷取 Batch 計算節點的遠端桌面通訊協定檔案。

核心 GA
az batch node remote-desktop download

取得指定計算節點的遠端桌面通訊協定檔案。

核心 GA
az batch node remote-login-settings

擷取 Batch 計算節點的遠端登入設定。

核心 GA
az batch node remote-login-settings show

取得遠端登入計算節點所需的設定。

核心 GA
az batch node scheduling

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

核心 GA
az batch node scheduling disable

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

核心 GA
az batch node scheduling enable

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

核心 GA
az batch node service-logs

管理服務 Batch 計算節點的服務記錄檔。

核心 GA
az batch node service-logs upload

將 Azure Batch 服務記錄檔從指定的計算節點上傳至Azure Blob 儲存體。

核心 GA
az batch node show

取得指定計算節點的相關資訊。

核心 GA
az batch node user

管理 Batch 計算節點的使用者帳戶。

核心 GA
az batch node user create

將使用者帳戶新增至 Batch 計算節點。

核心 GA
az batch node user delete

從指定的計算節點刪除使用者帳戶。

核心 GA
az batch node user reset

更新 Batch 計算節點上使用者帳戶的屬性。 可以更新的未指定屬性會重設為預設值。

核心 GA

az batch node delete

從指定的集區中移除計算節點。

此作業只能在集區的配置狀態穩定時執行。 當此作業執行時,配置狀態會從穩定變更為調整大小。 每個要求最多可以移除 100 個節點。

az batch node delete --pool-id
                     [--account-endpoint]
                     [--account-key]
                     [--account-name]
                     [--if-match]
                     [--if-modified-since]
                     [--if-none-match]
                     [--if-unmodified-since]
                     [--json-file]
                     [--node-deallocation-option {requeue, retaineddata, taskcompletion, terminate}]
                     [--node-list]
                     [--resize-timeout]

必要參數

--pool-id

您要從中移除計算節點的集區識別碼。

選擇性參數

--account-endpoint

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

--account-key

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

--account-name

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

--if-match

與用戶端已知的資源版本相關聯的 ETag 值。 只有在服務上的資源目前的 ETag 完全符合用戶端指定的值時,才會執行此作業。

--if-modified-since

時間戳記,指出用戶端已知的資源上次修改時間。 只有在服務上的資源自指定時間以來已修改時,才會執行此作業。

--if-none-match

與用戶端已知的資源版本相關聯的 ETag 值。 只有在服務的目前 ETag 不符合用戶端指定的值時,才會執行作業。

--if-unmodified-since

時間戳記,指出用戶端已知的資源上次修改時間。 只有在服務上的資源自指定時間以來尚未修改時,才會執行此作業。

--json-file

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

--node-deallocation-option

決定在選取要解除配置的計算節點及其執行中工作之後,該怎麼做。 預設值為重新排入佇列。

接受的值: requeue, retaineddata, taskcompletion, terminate
--node-list

必要。 每個要求最多可以移除 100 個節點。 以空格分隔的值。

--resize-timeout

預設值為 15 分鐘。 最小值為 5 分鐘。 如果您指定小於 5 分鐘的值,Batch 服務會傳回錯誤;如果您直接呼叫 REST API,則 HTTP 狀態碼為 400 (不正確的要求)。 預期格式為 ISO-8601 持續時間。

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

列出指定集區中的計算節點。

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

必要參數

--pool-id

您要從中列出計算節點的集區識別碼。

選擇性參數

--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#list-nodes-in-a-pool

--select

OData $select 子句。

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

重新開機指定的計算節點。

只有在計算節點處於閒置或執行中狀態時,才能重新開機它。

az batch node reboot --node-id
                     --pool-id
                     [--account-endpoint]
                     [--account-key]
                     [--account-name]
                     [--node-reboot-option {requeue, retaineddata, 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-reboot-option

預設值為重新排入佇列。

接受的值: requeue, retaineddata, 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 reimage

在指定的計算節點上重新安裝作業系統。

只有當作業系統處於閒置或執行中狀態時,才可以在計算節點上重新安裝作業系統。 此 API 只能在使用雲端服務組態屬性建立的集區上叫用。

az batch node reimage --node-id
                      --pool-id
                      [--account-endpoint]
                      [--account-key]
                      [--account-name]
                      [--node-reimage-option {requeue, retaineddata, 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-reimage-option

預設值為重新排入佇列。

接受的值: requeue, retaineddata, 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 show

取得指定計算節點的相關資訊。

az batch node show --node-id
                   --pool-id
                   [--account-endpoint]
                   [--account-key]
                   [--account-name]
                   [--select]

必要參數

--node-id

您想要取得相關資訊之計算節點的識別碼。

--pool-id

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

選擇性參數

--account-endpoint

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

--account-key

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

--account-name

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

--select

OData $select 子句。

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