你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az hdinsight

管理 HDInsight 资源。

命令

名称 说明 类型 状态
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 Monitor 日志集成。

核心 GA
az hdinsight azure-monitor disable

禁用 HDInsight 群集上的 Azure Monitor 日志集成。

核心 GA
az hdinsight azure-monitor enable

在 HDInsight 群集上启用 Azure Monitor 日志集成。

核心 GA
az hdinsight azure-monitor show

获取 HDInsight 群集上的 Azure Monitor 日志集成的状态。

核心 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 Monitor 日志集成。

核心 GA
az hdinsight monitor disable

禁用 HDInsight 群集上的经典 Azure Monitor 日志集成。

核心 GA
az hdinsight monitor enable

在 HDInsight 群集上启用经典 Azure Monitor 日志集成。

核心 GA
az hdinsight monitor show

获取 HDInsight 群集上的经典 Azure Monitor 日志集成的状态。

核心 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

获取给定脚本执行 ID 的脚本执行详细信息。

核心 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 代理创建 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 Storage 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

使用中继出站和专用链接功能创建群集。

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

用户分配标识的名称或 ID。

--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 域 服务的名称或资源 ID。 仅当创建具有企业安全性包的群集时才是必需的。

--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 用户名。 默认值:管理员。

--idbroker

指定使用 HDInsight ID Broker 创建 ESP 群集。 如果省略,则不允许使用 HDInsight ID Broker 创建 ESP 群集。

默认值: False
--kafka-client-group-id

Kafka Rest 代理的客户端 AAD 安全组 ID。

--kafka-client-group-name

Kafka REST 代理的客户端 AAD 安全组名称。

--kafka-management-node-count

群集中的 kafka 管理节点数。

默认值: 2
--kafka-management-node-size
--ldaps-urls

用于与 Active Directory 通信的 LDAPS 协议 URL 的空格分隔列表。 仅当创建具有企业安全性包的群集时才是必需的。

--location -l

Location。 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}提供。 有关详细信息,请参阅 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

存储帐户的名称或 ID。

--storage-account-key

存储帐户密钥。 如果用户有权访问存储帐户,则可以自动检索密钥。

--storage-account-managed-identity

具有存储帐户文件系统访问权限的用户分配托管标识。 仅当存储帐户类型为 Azure Data Lake 存储 Gen2 时才是必需的。

--storage-container

群集将使用的存储容器。 如果未指定群集名称,则使用群集名称。 (仅 WASB)。

--storage-filesystem

群集将使用的存储文件系统。 如果未指定群集名称,则使用群集名称。 (仅限 DFS)。

--subnet

子网的名称或 ID。 如果提供名称, --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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az hdinsight list-usage

列出指定位置的用法。

az hdinsight list-usage --location

必需参数

--location -l

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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。