共用方式為


az hdinsight-on-aks cluster upgrade

備註

此參考是 Azure CLI 的 hdinsightonaks 擴充功能的一部分(2.57.0 版或更高版本)。 擴充功能會在您第一次執行 az hdinsight-on-aks 叢集升級 命令時自動安裝。 深入瞭解擴充功能

命令群組 'az hdinsight-on-aks cluster' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

升級叢集。

命令

名稱 Description 類型 狀態
az hdinsight-on-aks cluster upgrade history

列出升級歷程記錄的清單。

擴充套件 預覽
az hdinsight-on-aks cluster upgrade list

列出叢集可用的升級。

擴充套件 預覽
az hdinsight-on-aks cluster upgrade rollback

叢集的手動復原升級。

擴充套件 預覽
az hdinsight-on-aks cluster upgrade run

升級叢集。

擴充套件 預覽

az hdinsight-on-aks cluster upgrade history

預覽

命令群組 'az hdinsight-on-aks cluster upgrade' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出升級歷程記錄的清單。

az hdinsight-on-aks cluster upgrade history --cluster-name
                                            --cluster-pool-name
                                            --resource-group
                                            [--max-items]
                                            [--next-token]

範例

列出叢集的升級記錄。

az hdinsight-on-aks cluster upgrade history -g {resourcesGroup} --cluster-pool-name {poolName} --cluster-name {clusterName}

必要參數

--cluster-name

HDInsight 叢集的名稱。

--cluster-pool-name

叢集集區的名稱。

--resource-group -g

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

選擇性參數

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

全域參數
--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 hdinsight-on-aks cluster upgrade list

預覽

命令群組 'az hdinsight-on-aks cluster upgrade' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出叢集可用的升級。

az hdinsight-on-aks cluster upgrade list --cluster-name
                                         --cluster-pool-name
                                         --resource-group
                                         [--max-items]
                                         [--next-token]

範例

列出叢集可用的升級。

az hdinsight-on-aks cluster upgrade list -g {resourcesGroup} --cluster-pool-name {poolName} --cluster-name {clusterName}

必要參數

--cluster-name

HDInsight 叢集的名稱。

--cluster-pool-name

叢集集區的名稱。

--resource-group -g

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

選擇性參數

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

全域參數
--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 hdinsight-on-aks cluster upgrade rollback

預覽

命令群組 'az hdinsight-on-aks cluster upgrade' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

叢集的手動復原升級。

az hdinsight-on-aks cluster upgrade rollback --upgrade-history
                                             [--cluster-name]
                                             [--cluster-pool-name]
                                             [--ids]
                                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                             [--resource-group]
                                             [--subscription]

範例

復原升級至叢集。

az hdinsight-on-aks cluster upgrade rollback -g {resourcesGroup} --cluster-pool-name {poolName} --cluster-name {clusterName} --upgrade-history {history string}

必要參數

--upgrade-history

復原的特定升級歷程記錄。

選擇性參數

--cluster-name

HDInsight 叢集的名稱。

--cluster-pool-name

叢集集區的名稱。

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

--subscription

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

全域參數
--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 hdinsight-on-aks cluster upgrade run

預覽

命令群組 'az hdinsight-on-aks cluster upgrade' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

升級叢集。

az hdinsight-on-aks cluster upgrade run [--aks-patch-upgrade]
                                        [--cluster-name]
                                        [--cluster-pool-name]
                                        [--hotfix-upgrade]
                                        [--ids]
                                        [--in-place-upgrade]
                                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                        [--patch-version-upgrade]
                                        [--resource-group]
                                        [--subscription]

範例

升級叢集,使用命令 'az hdinsight-on-aks cluster upgrade list' get upgrades list.

az hdinsight-on-aks cluster upgrade run -g {resourcesGroup} --cluster-pool-name {poolName} --cluster-name {clusterName} --hotfix-upgrade component-name={componentName} target-build-number={targetBuildNumber} target-cluster-version={targetClusterVersion} target-oss-version={targetOssVersion}

選擇性參數

--aks-patch-upgrade

支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--cluster-name

HDInsight 叢集的名稱。

--cluster-pool-name

叢集集區的名稱。

--hotfix-upgrade

升級叢集 Hotfix 的屬性。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--in-place-upgrade

就地升級叢集的屬性。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--patch-version-upgrade

支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--resource-group -g

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

--subscription

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

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