az hdinsight

管理 HDInsight 資源。

命令

名稱 Description 類型 狀態
az hdinsight application

管理 HDInsight 應用程式。

核心 GA
az hdinsight application create

建立 HDInsight 叢集的應用程式。

核心 GA
az hdinsight application delete

刪除 HDInsight 叢集上的指定應用程式。

核心 GA
az hdinsight application list

列出 HDInsight 叢集的所有應用程式。

核心 GA
az hdinsight application show

取得指定之應用程式的屬性。

核心 GA
az hdinsight application wait

將 CLI 置於等候狀態,直到作業完成為止。

核心 GA
az hdinsight autoscale

管理 HDInsight 叢集的自動調整設定。

核心 GA
az hdinsight autoscale condition

管理已啟用排程型自動調整之 HDInsight 叢集的排程條件。

核心 GA
az hdinsight autoscale condition create

新增排程條件。

核心 GA
az hdinsight autoscale condition delete

刪除排程條件。

核心 GA
az hdinsight autoscale condition list

列出所有排程條件。

核心 GA
az hdinsight autoscale condition update

更新排程條件。

核心 GA
az hdinsight autoscale condition wait

將 CLI 置於等候狀態,直到作業完成為止。

核心 GA
az hdinsight autoscale create

啟用執行中叢集的自動調整。

核心 GA
az hdinsight autoscale delete

停用執行中叢集的自動調整。

核心 GA
az hdinsight autoscale list-timezones

啟用以排程為基礎的自動調整時,列出可用的時區名稱。

核心 GA
az hdinsight autoscale show

取得指定叢集的自動調整組態。

核心 GA
az hdinsight autoscale update

更新自動調整設定。

核心 GA
az hdinsight autoscale wait

將 CLI 置於等候狀態,直到作業完成為止。

核心 GA
az hdinsight azure-monitor

管理 HDInsight 叢集上的 Azure 監視器記錄整合。

核心 GA
az hdinsight azure-monitor disable

停用 HDInsight 叢集上的 Azure 監視器記錄整合。

核心 GA
az hdinsight azure-monitor enable

在 HDInsight 叢集上啟用 Azure 監視器記錄整合。

核心 GA
az hdinsight azure-monitor show

取得 HDInsight 叢集上 Azure 監視器記錄整合的狀態。

核心 GA
az hdinsight create

建立新的叢集。

核心 GA
az hdinsight delete

刪除指定的 HDInsight 叢集。

核心 GA
az hdinsight host

管理 HDInsight 叢集的虛擬主機。

核心 GA
az hdinsight host list

列出指定之 HDInsight 叢集的主機。

核心 GA
az hdinsight host restart

重新開機指定之 HDInsight 叢集的特定主機。

核心 GA
az hdinsight list

列出資源群組或訂用帳戶中的 HDInsight 叢集。

核心 GA
az hdinsight list-usage

列出指定位置的使用方式。

核心 GA
az hdinsight monitor

管理 HDInsight 叢集上的傳統 Azure 監視器記錄整合。

核心 GA
az hdinsight monitor disable

停用 HDInsight 叢集上的傳統 Azure 監視器記錄整合。

核心 GA
az hdinsight monitor enable

在 HDInsight 叢集上啟用傳統 Azure 監視器記錄整合。

核心 GA
az hdinsight monitor show

取得 HDInsight 叢集上傳統 Azure 監視器記錄整合的狀態。

核心 GA
az hdinsight resize

將指定的 HDInsight 叢集大小調整為指定的大小。

核心 GA
az hdinsight rotate-disk-encryption-key

輪替指定 HDInsight 叢集的磁片加密金鑰。

核心 GA
az hdinsight script-action

管理 HDInsight 腳本動作。

核心 GA
az hdinsight script-action delete

刪除叢集的指定保存腳本動作。

核心 GA
az hdinsight script-action execute

在指定的 HDInsight 叢集上執行腳本動作。

核心 GA
az hdinsight script-action list

列出指定叢集的所有保存腳本動作。

核心 GA
az hdinsight script-action list-execution-history

列出指定叢集的所有腳本執行歷程記錄。

核心 GA
az hdinsight script-action promote

將指定的臨機操作腳本執行升階為保存的腳本。

核心 GA
az hdinsight script-action show-execution-details

取得指定腳本執行識別碼的腳本執行詳細資料。

核心 GA
az hdinsight show

取得指定的叢集。

核心 GA
az hdinsight update

更新指定之 HDInsight 叢集的標記。

核心 GA
az hdinsight wait

將 CLI 置於等候狀態,直到作業完成為止。

核心 GA

az hdinsight create

建立新的叢集。

az hdinsight create --name
                    --resource-group
                    --type
                    [--assign-identity]
                    [--autoscale-count]
                    [--autoscale-max-count]
                    [--autoscale-min-count]
                    [--autoscale-type {Load, Schedule}]
                    [--cluster-admin-account]
                    [--cluster-admin-password]
                    [--cluster-configurations]
                    [--cluster-tier {Premium, Standard}]
                    [--cluster-users-group-dns]
                    [--component-version]
                    [--compute-isolation {false, true}]
                    [--days {Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}]
                    [--domain]
                    [--edgenode-size]
                    [--enable-private-link {false, true}]
                    [--encryption-algorithm {RSA-OAEP, RSA-OAEP-256, RSA1_5}]
                    [--encryption-at-host {false, true}]
                    [--encryption-in-transit {false, true}]
                    [--encryption-key-name]
                    [--encryption-key-version]
                    [--encryption-vault-uri]
                    [--esp]
                    [--headnode-size]
                    [--host-sku]
                    [--http-password]
                    [--http-user]
                    [--idbroker]
                    [--kafka-client-group-id]
                    [--kafka-client-group-name]
                    [--kafka-management-node-count]
                    [--kafka-management-node-size]
                    [--ldaps-urls]
                    [--location]
                    [--minimal-tls-version {1.2}]
                    [--no-validation-timeout]
                    [--no-wait]
                    [--private-link-config]
                    [--resource-provider-connection {Inbound, Outbound}]
                    [--ssh-password]
                    [--ssh-public-key]
                    [--ssh-user]
                    [--storage-account]
                    [--storage-account-key]
                    [--storage-account-managed-identity]
                    [--storage-container]
                    [--storage-filesystem]
                    [--subnet]
                    [--tags]
                    [--time]
                    [--timezone]
                    [--version]
                    [--vnet-name]
                    [--workernode-count]
                    [--workernode-data-disk-size]
                    [--workernode-data-disk-storage-account-type {premium_lrs, standard_lrs}]
                    [--workernode-data-disks-per-node]
                    [--workernode-size]
                    [--zones]
                    [--zookeepernode-size]

範例

使用現有的儲存體帳戶建立叢集。

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount

使用最低 tls 版本建立叢集。

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount --minimal-tls-version 1.2

建立可啟用傳輸中加密的叢集。

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount --encryption-in-transit true

在主機上建立具有加密的叢集。

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount --encryption-at-host true

使用企業安全性套件 (ESP) 建立叢集。

az hdinsight create --esp -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--subnet "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/subnet1" \
--domain "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.AAD/domainServices/MyDomain.onmicrosoft.com" \
--assign-identity "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MyMsiRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyMSI" \
--cluster-admin-account MyAdminAccount@MyDomain.onmicrosoft.com \
--cluster-users-group-dns MyGroup

使用企業安全性套件 (ESP) 建立叢集,並啟用 HDInsight ID Broker。

az hdinsight create --esp --idbroker -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--subnet "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/subnet1" \
--domain "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.AAD/domainServices/MyDomain.onmicrosoft.com" \
--assign-identity "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MyMsiRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyMSI" \
--cluster-admin-account MyAdminAccount@MyDomain.onmicrosoft.com \
--cluster-users-group-dns MyGroup

建立具有磁片加密的 Kafka 叢集。 請參閱https://docs.microsoft.com/azure/hdinsight/kafka/apache-kafka-byok.

az hdinsight create -t kafka -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --workernode-data-disks-per-node 2 \
--storage-account MyStorageAccount \
--encryption-key-name kafkaClusterKey \
--encryption-key-version 00000000000000000000000000000000 \
--encryption-vault-uri https://MyKeyVault.vault.azure.net \
--assign-identity MyMSI

使用 kafka rest Proxy 建立 kafka 叢集。

az hdinsight create -t kafka -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --workernode-data-disks-per-node 2 \
--storage-account MyStorageAccount \
--kafka-management-node-size "Standard_D4_v2" \
--kafka-client-group-id MySecurityGroupId \
--kafka-client-group-name MySecurityGroupName
--component-version kafka=2.1

使用 Azure Data Lake 儲存體 Gen2 建立叢集

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--storage-account-managed-identity MyMSI

使用 JSON 字串的組態建立叢集。

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--cluster-configuration {'gateway':{'restAuthCredential.username':'admin'}}

從本機檔案建立組態的叢集。

az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--cluster-configuration @config.json

建立以負載為基礎的自動調整叢集。

az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--autoscale-type Load --autoscale-min-workernode-count 3 --autoscale-max-workernode-count 5

建立以排程為基礎的自動調整的叢集。

az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--autoscale-type Schedule --timezone "Pacific Standard Time" --days Monday \
--time 09:00 --autoscale-workernode-count 5

建立具有轉寄輸出和 Private Link 功能的叢集。

az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--subnet "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/fakevnet/subnets/default" \
--resource-provider-connection Outbound --enable-private-link

建立具有計算隔離功能的叢集。

az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--enable-compute-isolation --workernode-size "Standard_E8S_V3" --headnode-size "Standard_E8S_V3"

必要參數

--name -n

叢集的名稱。

--resource-group -g

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

--type -t

HDInsight 叢集的類型,例如:hadoop、interactivehive、hbase、kafka、storm、spark、rserver、mlservices。 另請參閱: https://docs.microsoft.com/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#cluster-types

選擇性參數

--assign-identity

使用者指派身分識別的名稱或識別碼。

--autoscale-count --autoscale-workernode-count

排程的背景工作節點計數。

--autoscale-max-count --autoscale-max-workernode-count

負載型 atuoscale 的最大背景工作節點計數。

--autoscale-min-count --autoscale-min-workernode-count

負載型 atuoscale 的最小背景工作節點計數。

--autoscale-type

自動調整類型。

接受的值: Load, Schedule
--cluster-admin-account

將具有叢集系統管理員許可權的網域使用者帳戶。 只有在使用企業安全性套件建立叢集時才需要。

--cluster-admin-password

網域管理員密碼。 只有在使用企業安全性套件建立叢集時才需要。

--cluster-configurations

各種元件的額外設定。 您可以使用語法或 JSON 字串,從檔案 @{path} 提供組態。 另請參閱: https://docs.microsoft.com/azure/hdinsight/hdinsight-hadoop-customize-cluster-bootstrap

--cluster-tier

叢集的階層。

接受的值: Premium, Standard
--cluster-users-group-dns

叢集使用者群組的辨別名稱空格分隔清單。 只有在使用企業安全性套件建立叢集時才需要。

--component-version

各種 Hadoop 元件的版本,以 'component=version' 格式以空格分隔版本。 範例:Spark=2.0 Hadoop=2.7.3 另請參閱: https://docs.microsoft.com/azure/hdinsight/hdinsight-component-versioning#hadoop-components-available-with-different-hdinsight-versions

--compute-isolation --enable-compute-isolation

指出是否啟用計算隔離。

接受的值: false, true
--days

以空格分隔的排程日期清單。

接受的值: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
--domain

使用者 Azure Active Directory 網域服務的名稱或資源識別碼。 只有在使用企業安全性套件建立叢集時才需要。

--edgenode-size
--enable-private-link

指出是否啟用私人連結。

接受的值: false, true
--encryption-algorithm

加密的演算法識別碼。

接受的值: RSA-OAEP, RSA-OAEP-256, RSA1_5
預設值: RSA-OAEP
--encryption-at-host

指出是否在主機啟用加密。

接受的值: false, true
--encryption-in-transit

指出是否在傳輸中啟用加密。

接受的值: false, true
--encryption-key-name

用於啟用磁片加密的金鑰名稱。

--encryption-key-version

用於啟用磁片加密的金鑰版本。

--encryption-vault-uri

客戶金鑰所在的基底金鑰保存庫 URI,例如 https://myvault.vault.azure.net.

--esp

指定 以使用企業安全性套件建立叢集。 如果省略,則不允許使用企業安全性套件建立叢集。

預設值: False
--headnode-size
--host-sku

計算隔離的專用主機 SKU。

--http-password -p

叢集的 HTTP 密碼。 如果未提供,將提示。

--http-user -u

叢集的 HTTP 使用者名稱。 預設值:admin。

--idbroker

指定 以使用 HDInsight ID Broker 建立 ESP 叢集。 如果省略,則不允許使用 HDInsight ID Broker 建立 ESP 叢集。

預設值: False
--kafka-client-group-id

Kafka Rest Proxy 的用戶端 AAD 安全性群組識別碼。

--kafka-client-group-name

Kafka Rest Proxy 的用戶端 AAD 安全性群組名稱。

--kafka-management-node-count

叢集中的 kafka 管理節點數目。

預設值: 2
--kafka-management-node-size
--ldaps-urls

要與 Active Directory 通訊的 LDAPS 通訊協定 URL 以空格分隔的清單。 只有在使用企業安全性套件建立叢集時才需要。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--minimal-tls-version

最低支援的 TLS 版本。

接受的值: 1.2
--no-validation-timeout

允許在引數驗證階段期間發生逾時錯誤。 如果省略,則會允許驗證逾時錯誤。

預設值: False
--no-wait

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

預設值: False
--private-link-config --private-link-configurations

建立叢集時的私人連結組態。 您可以使用語法或 JSON 字串,從檔案 @{path} 提供 Private Link 組態。 請參閱 https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/hdinsight/tests/latest/privatelinkconfigurations.json

--resource-provider-connection --rp-connection

資源提供者連線類型。

接受的值: Inbound, Outbound
--ssh-password -P

叢集節點的 SSH 密碼。 如果未指定,請使用 HTTP 密碼。

--ssh-public-key -K

叢集節點的 SSH 公開金鑰。

--ssh-user -U

叢集節點的 SSH 使用者名稱。

預設值: sshuser
--storage-account

儲存體帳戶的名稱或識別碼。

--storage-account-key

儲存體帳戶金鑰。 如果使用者具有儲存體帳戶的存取權,則可以自動擷取金鑰。

--storage-account-managed-identity

具有儲存體帳戶檔案系統存取權的使用者指派受控識別。 只有在儲存體帳戶類型為 Azure Data Lake 儲存體 Gen2 時才需要。

--storage-container

叢集將使用的儲存體容器。 如果未指定叢集名稱,請使用叢集名稱。 (僅限 WASB)。

--storage-filesystem

叢集將使用的儲存體檔案系統。 如果未指定叢集名稱,請使用叢集名稱。 (僅限 DFS)。

--subnet

子網的名稱或識別碼。 如果提供名稱, --vnet-name 則必須提供 。

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

--time

以 xx:xx 為單位的 24 小時時間。

--timezone

排程自動調整類型的時區。 來自 az hdinsight autoscale list-timezones 的值。

--version -v
--vnet-name

虛擬網路的名稱。

--workernode-count -c

叢集中的背景工作節點數目。

預設值: 3
--workernode-data-disk-size

以 GB 為單位的資料磁片大小,例如 1023。

--workernode-data-disk-storage-account-type

將用於資料磁片的儲存體帳戶類型:standard_lrs或premium_lrs。

接受的值: premium_lrs, standard_lrs
--workernode-data-disks-per-node

每個背景工作節點要使用的資料磁片數目。

--workernode-size
--zones

將建立叢集的可用性區域以空格分隔的清單。

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

刪除指定的 HDInsight 叢集。

az hdinsight delete --name
                    --resource-group
                    [--no-wait]
                    [--yes]

必要參數

--name -n

叢集的名稱。

--resource-group -g

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

選擇性參數

--no-wait

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

預設值: False
--yes -y

不提示確認。

預設值: False
全域參數
--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 list

列出資源群組或訂用帳戶中的 HDInsight 叢集。

az hdinsight list [--resource-group]

選擇性參數

--resource-group -g

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

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

列出指定位置的使用方式。

az hdinsight list-usage --location

必要參數

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

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

將指定的 HDInsight 叢集大小調整為指定的大小。

az hdinsight resize --name
                    --resource-group
                    --workernode-count
                    [--no-wait]

範例

調整叢集的背景工作節點大小。

az hdinsight resize --name MyCluster --resource-group rg --workernode-count 5

必要參數

--name -n

叢集的名稱。

--resource-group -g

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

--workernode-count -c

作業的目標背景工作節點實例計數。

選擇性參數

--no-wait

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

預設值: False
全域參數
--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 rotate-disk-encryption-key

輪替指定 HDInsight 叢集的磁片加密金鑰。

az hdinsight rotate-disk-encryption-key --encryption-key-name
                                        --encryption-key-version
                                        --encryption-vault-uri
                                        --name
                                        --resource-group
                                        [--no-wait]

必要參數

--encryption-key-name

用於啟用磁片加密的金鑰名稱。

--encryption-key-version

用於啟用磁片加密的金鑰版本。

--encryption-vault-uri

客戶金鑰所在的基底金鑰保存庫 URI,例如 https://myvault.vault.azure.net.

--name -n

叢集的名稱。

--resource-group -g

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

選擇性參數

--no-wait

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

預設值: False
全域參數
--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 show

取得指定的叢集。

az hdinsight show --name
                  --resource-group

必要參數

--name -n

叢集的名稱。

--resource-group -g

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

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

更新指定之 HDInsight 叢集的標記。

az hdinsight update --name
                    --resource-group
                    [--no-wait]
                    [--tags]

範例

更新標記。

az hdinsight update --name MyCluster --resource-group rg --tags key=value

必要參數

--name -n

叢集的名稱。

--resource-group -g

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

選擇性參數

--no-wait

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

預設值: False
--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

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

將 CLI 置於等候狀態,直到作業完成為止。

az hdinsight wait --name
                  --resource-group
                  [--created]
                  [--custom]
                  [--deleted]
                  [--exists]
                  [--interval]
                  [--timeout]
                  [--updated]

必要參數

--name -n

叢集的名稱。

--resource-group -g

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

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自訂 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--interval

輪詢間隔以秒為單位。

預設值: 30
--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

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