共用方式為


az aks command

請參閱 'az aks command invoke', 'az aks command result' 中的詳細使用量。

命令

名稱 Description 類型 狀態
az aks command invoke

在 aks 叢集上執行殼層命令(使用 kubectl、helm),也支援附加檔案。

Core GA
az aks command result

從先前觸發的 『aks 命令叫用』 擷取結果。

Core GA

az aks command invoke

在 aks 叢集上執行殼層命令(使用 kubectl、helm),也支援附加檔案。

az aks command invoke --name
                      --resource-group
                      [--command]
                      [--file]
                      [--no-wait]

必要參數

--name -n

受控叢集的名稱。

--resource-group -g

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--command -c

您要執行的命令或殼層腳稿。

--file -f

命令要使用的檔案,請使用 『.』 附加目前的資料夾。

--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az aks command result

從先前觸發的 『aks 命令叫用』 擷取結果。

az aks command result --name
                      --resource-group
                      [--command-id]

必要參數

--name -n

受控叢集的名稱。

--resource-group -g

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--command-id -i

從 『aks 命令叫用』 傳回的 CommandId。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False