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

az hdinsight

管理 HDInsight 资源。

命令

名称 说明 类型 Status
az hdinsight application

管理 HDInsight 应用程序。

Core GA
az hdinsight application create

为 HDInsight 群集创建应用程序。

Core GA
az hdinsight application delete

删除 HDInsight 群集上的指定应用程序。

Core GA
az hdinsight application list

列出 HDInsight 群集的所有应用程序。

Core GA
az hdinsight application show

获取指定应用程序的属性。

Core GA
az hdinsight application wait

将 CLI 置于等待状态,直到操作完成。

Core GA
az hdinsight autoscale

管理 HDInsight 群集的自动缩放配置。

Core GA
az hdinsight autoscale condition

管理启用了基于计划的自动缩放的 HDInsight 群集的计划条件。

Core GA
az hdinsight autoscale condition create

添加新的计划条件。

Core GA
az hdinsight autoscale condition delete

删除计划条件。

Core GA
az hdinsight autoscale condition list

列出所有计划条件。

Core GA
az hdinsight autoscale condition update

更新计划条件。

Core GA
az hdinsight autoscale condition wait

将 CLI 置于等待状态,直到操作完成。

Core GA
az hdinsight autoscale create

为正在运行的群集启用自动缩放。

Core GA
az hdinsight autoscale delete

为正在运行的群集禁用自动缩放。

Core GA
az hdinsight autoscale list-timezones

列出启用基于计划的自动缩放时可用的时区名称。

Core GA
az hdinsight autoscale show

获取指定群集的自动缩放配置。

Core GA
az hdinsight autoscale update

更新自动缩放配置。

Core GA
az hdinsight autoscale wait

将 CLI 置于等待状态,直到操作完成。

Core GA
az hdinsight azure-monitor

管理 HDInsight 群集上的 Azure Monitor 日志集成。

Core GA
az hdinsight azure-monitor-agent

管理 HDInsight 群集上的 Azure Monitor 代理日志集成。

Core GA
az hdinsight azure-monitor-agent disable

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

Core GA
az hdinsight azure-monitor-agent enable

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

Core GA
az hdinsight azure-monitor-agent show

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

Core GA
az hdinsight azure-monitor disable

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

Core GA
az hdinsight azure-monitor enable

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

Core GA
az hdinsight azure-monitor show

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

Core GA
az hdinsight create

创建新群集。

Core GA
az hdinsight delete

删除指定的 HDInsight 群集。

Core GA
az hdinsight host

管理 HDInsight 群集的虚拟主机。

Core GA
az hdinsight host list

列出指定 HDInsight 群集的主机。

Core GA
az hdinsight host restart

重启指定 HDInsight 群集的特定主机。

Core GA
az hdinsight list

列出资源组或订阅中的 HDInsight 群集。

Core GA
az hdinsight list-usage

列出指定位置的用法。

Core GA
az hdinsight monitor

管理 HDInsight 群集上的经典 Azure Monitor 日志集成。

Core GA
az hdinsight monitor disable

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

Core GA
az hdinsight monitor enable

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

Core GA
az hdinsight monitor show

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

Core GA
az hdinsight resize

将指定的 HDInsight 群集调整为指定大小。

Core GA
az hdinsight rotate-disk-encryption-key

轮换指定的 HDInsight 群集的磁盘加密密钥。

Core GA
az hdinsight script-action

管理 HDInsight 脚本操作。

Core GA
az hdinsight script-action delete

删除群集的指定持久化脚本作。

Core GA
az hdinsight script-action execute

在指定的 HDInsight 群集上执行脚本操作。

Core GA
az hdinsight script-action list

列出指定群集的所有持久化脚本作。

Core GA
az hdinsight script-action list-execution-history

列出指定群集的所有脚本执行历史记录。

Core GA
az hdinsight script-action promote

将指定的即席脚本执行提升为持久化脚本。

Core GA
az hdinsight script-action show-execution-details

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

Core GA
az hdinsight show

获取指定的群集。

Core GA
az hdinsight update

更新指定 HDInsight 群集的标记或标识。 设置标识属性将替代群集的现有标识配置。

Core GA
az hdinsight wait

将 CLI 置于等待状态,直到操作完成。

Core GA

az hdinsight create

创建新群集。

az hdinsight create --name
                    --resource-group
                    --type
                    [--assign-identity]
                    [--autoscale-count --autoscale-workernode-count]
                    [--autoscale-max-count --autoscale-max-workernode-count]
                    [--autoscale-min-count --autoscale-min-workernode-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 --enable-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]
                    [--outbound-dependencies-managed-type --outbound-managed-type {External, Managed}]
                    [--private-link-config --private-link-configurations]
                    [--public-ip-tag-type]
                    [--public-ip-tag-value]
                    [--resource-provider-connection --rp-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://free.blessedness.top/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://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#cluster-types

属性
Parameter group: Cluster Arguments

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--assign-identity

用户分配标识的名称或 ID。 当assign_identity_type为 SystemAssigned 时跳过此字段。

属性
Parameter group: Managed Service Identity Arguments
--autoscale-count --autoscale-workernode-count

计划的辅助节点计数。

属性
Parameter group: Autoscale Configuration Arguments
--autoscale-max-count --autoscale-max-workernode-count

基于负载的 atuoscale 的最大辅助节点计数。

属性
Parameter group: Autoscale Configuration Arguments
--autoscale-min-count --autoscale-min-workernode-count

基于负载的 atuoscale 的最小辅助节点计数。

属性
Parameter group: Autoscale Configuration Arguments
--autoscale-type

自动缩放类型。

属性
Parameter group: Autoscale Configuration Arguments
接受的值: Load, Schedule
--cluster-admin-account

将在群集上具有管理员权限的域用户帐户。 仅当创建具有企业安全性包的群集时才是必需的。

属性
Parameter group: Domain Service Arguments
--cluster-admin-password

域管理员密码。 仅当创建具有企业安全性包的群集时才是必需的。

属性
Parameter group: Domain Service Arguments
--cluster-configurations

各种组件的额外配置。 可以使用语法或 JSON 字符串从文件 @{path} 提供配置。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-customize-cluster-bootstrap

属性
Parameter group: Cluster Arguments
--cluster-tier

群集的层。

属性
Parameter group: Cluster Arguments
接受的值: Premium, Standard
--cluster-users-group-dns

群集用户组的可分辨名称的空格分隔列表。 仅当创建具有企业安全性包的群集时才是必需的。

属性
Parameter group: Domain Service Arguments
--component-version

各种 Hadoop 组件的版本,采用“component=version”格式的空格分隔版本。 示例:Spark=2.0 Hadoop=2.7.3 另请参阅: https://free.blessedness.top/azure/hdinsight/hdinsight-component-versioning#hadoop-components-available-with-different-hdinsight-versions

属性
Parameter group: Cluster Arguments
--compute-isolation --enable-compute-isolation

指示是否启用计算隔离。

属性
Parameter group: Compute Isolation Arguments
接受的值: false, true
--days

以空格分隔的计划日期列表。

属性
Parameter group: Autoscale Configuration Arguments
接受的值: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
--domain

用户的 Azure Active Directory 域 服务的名称或资源 ID。 仅当创建具有企业安全性包的群集时才是必需的。

属性
Parameter group: Domain Service Arguments
--edgenode-size

节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size

属性
Parameter group: Node Arguments
--enable-private-link

指示是否启用专用链接。

属性
Parameter group: Private Link Arguments
接受的值: false, true
--encryption-algorithm

加密的算法标识符。

属性
Parameter group: Customer Managed Key Arguments
默认值: RSA-OAEP
接受的值: RSA-OAEP, RSA-OAEP-256, RSA1_5
--encryption-at-host

指示是否在主机上启用加密。

属性
Parameter group: Encryption At Host Arguments
接受的值: false, true
--encryption-in-transit

指示是否在传输中启用加密。

属性
Parameter group: Encryption In Transit Arguments
接受的值: false, true
--encryption-key-name

用于启用磁盘加密的密钥名称。

属性
Parameter group: Customer Managed Key Arguments
--encryption-key-version

用于启用磁盘加密的密钥版本。

属性
Parameter group: Customer Managed Key Arguments
--encryption-vault-uri

客户密钥所在的基密钥库 URI,例如。 https://myvault.vault.azure.net

属性
Parameter group: Customer Managed Key Arguments
--esp

指定使用企业安全性套餐创建群集。 如果省略,则不允许创建具有企业安全性包的群集。

属性
Parameter group: Cluster Arguments
默认值: False
--headnode-size

节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size

属性
Parameter group: Node Arguments
--host-sku

计算隔离的专用主机 SKU。

属性
Parameter group: Compute Isolation Arguments
--http-password -p

群集的 HTTP 密码。 如果未提供,将提示。

属性
Parameter group: HTTP Arguments
--http-user -u

群集的 HTTP 用户名。 默认值:管理员。

属性
Parameter group: HTTP Arguments
--idbroker

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

属性
Parameter group: Cluster Arguments
默认值: False
--kafka-client-group-id

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

属性
Parameter group: Kafka Rest Proxy Arguments
--kafka-client-group-name

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

属性
Parameter group: Kafka Rest Proxy Arguments
--kafka-management-node-count

群集中的 kafka 管理节点数。

属性
Parameter group: Node Arguments
默认值: 2
--kafka-management-node-size

节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size

属性
Parameter group: Node Arguments
--ldaps-urls

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

属性
Parameter group: Domain Service Arguments
--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--minimal-tls-version

支持的最低 TLS 版本。

属性
Parameter group: Cluster Arguments
接受的值: 1.2
--no-validation-timeout

允许在参数验证阶段出现超时错误。 如果省略,将允许验证超时错误。

属性
默认值: False
--no-wait

不等待长时间运行的操作完成。

属性
默认值: False
--outbound-dependencies-managed-type --outbound-managed-type

资源提供程序连接的方向。

属性
Parameter group: Private Link Arguments
接受的值: External, Managed
--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

属性
Parameter group: Private Link Arguments
--public-ip-tag-type

获取或设置 ipTag 类型:示例 FirstPartyUsage。

属性
Parameter group: Private Link Arguments
--public-ip-tag-value

获取或设置与公共 IP 关联的 IpTag 的值。HDInsight、SQL、存储等示例

属性
Parameter group: Private Link Arguments
--resource-provider-connection --rp-connection

资源提供程序连接类型。

属性
Parameter group: Resource provider connection Arguments
接受的值: Inbound, Outbound
--ssh-password -P

群集节点的 SSH 密码。 如果未指定,请使用 HTTP 密码。

属性
Parameter group: SSH Arguments
--ssh-public-key -K

群集节点的 SSH 公钥。

属性
Parameter group: SSH Arguments
--ssh-user -U

群集节点的 SSH 用户名。

属性
Parameter group: SSH Arguments
默认值: sshuser
--storage-account

存储帐户的名称或 ID。

属性
Parameter group: Storage Arguments
--storage-account-key

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

属性
Parameter group: Storage Arguments
--storage-account-managed-identity

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

属性
Parameter group: Storage Arguments
--storage-container

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

属性
Parameter group: Storage Arguments
--storage-filesystem

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

属性
Parameter group: Storage Arguments
--subnet

子网的名称或 ID。 如果提供名称, --vnet-name 则必须提供。

属性
Parameter group: Network Arguments
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

--time

以 xx:xx 为单位的 24 小时时间。

属性
Parameter group: Autoscale Configuration Arguments
--timezone

计划自动缩放类型的时区。 来自 az hdinsight autoscale list-timezones. 的值

属性
Parameter group: Autoscale Configuration Arguments
--version -v

HDInsight 群集版本。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-component-versioning#supported-hdinsight-versions

属性
Parameter group: Cluster Arguments
默认值: default
--vnet-name

虚拟网络的名称。

属性
Parameter group: Network Arguments
--workernode-count -c

群集中的工作器节点数。

属性
Parameter group: Node Arguments
默认值: 3
--workernode-data-disk-size

数据磁盘的大小(以 GB 为单位,例如 1023)。

属性
Parameter group: Node Arguments
--workernode-data-disk-storage-account-type

将用于数据磁盘的存储帐户类型:standard_lrs或premium_lrs。

属性
Parameter group: Node Arguments
接受的值: premium_lrs, standard_lrs
--workernode-data-disks-per-node

每个工作器节点要使用的数据磁盘数。

属性
Parameter group: Node Arguments
--workernode-size

节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size

属性
Parameter group: Node Arguments
--zones

将在其中创建群集的可用性区域的空间分隔列表。

属性
Parameter group: Availability Zone Arguments
--zookeepernode-size

节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size

属性
Parameter group: Node Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

az hdinsight delete

删除指定的 HDInsight 群集。

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

必需参数

--name -n

群集的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

不等待长时间运行的操作完成。

属性
默认值: False
--yes -y

不要提示确认。

属性
默认值: 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

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

--verbose

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

属性
默认值: False

az hdinsight list

列出资源组或订阅中的 HDInsight 群集。

az hdinsight list [--resource-group]

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

az hdinsight list-usage

列出指定位置的用法。

az hdinsight list-usage --location

必需参数

--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

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

操作的目标工作器节点实例计数。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

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

--verbose

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

属性
默认值: False

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

用于启用磁盘加密的密钥名称。

属性
Parameter group: Customer Managed Key Arguments
--encryption-key-version

用于启用磁盘加密的密钥版本。

属性
Parameter group: Customer Managed Key Arguments
--encryption-vault-uri

客户密钥所在的基密钥库 URI,例如。 https://myvault.vault.azure.net

属性
Parameter group: Customer Managed Key Arguments
--name -n

群集的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

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

--verbose

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

属性
默认值: False

az hdinsight show

获取指定的群集。

az hdinsight show --name
                  --resource-group

必需参数

--name -n

群集的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

az hdinsight update

更新指定 HDInsight 群集的标记或标识。 设置标识属性将替代群集的现有标识配置。

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

示例

更新标记。

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

使用单个 UserAssigned msi 更新管理标识。

az hdinsight update --name MyCluster --resource-group rg --assign-identity-type UserAssigned --assign-identity MyMsi

使用多个 UserAssigned msi 更新管理标识。

az hdinsight update --name MyCluster --resource-group rg --assign-identity-type UserAssigned --assign-identity MyMsi1 MyMsi2

更新 SystemAssigned 管理标识。

az hdinsight update --name MyCluster --resource-group rg --assign-identity-type SystemAssigned

使用 SystemAssigned、UserAssigned msi 更新管理标识。

az hdinsight update --name MyCluster --resource-group rg --assign-identity-type "SystemAssigned,UserAssigned" --assign-identity MyMsi1

必需参数

--name -n

群集的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--assign-identity

用户分配标识的名称或 ID。 当assign_identity_type为 SystemAssigned 时跳过此字段。

属性
Parameter group: Managed Service Identity Arguments
--assign-identity-type

用于群集的标识类型。 允许的值:NoneSystemAssignedSystemAssigned,UserAssignedUserAssigned

属性
Parameter group: Managed Service Identity Arguments
--no-wait

不等待长时间运行的操作完成。

属性
默认值: False
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

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>配置默认组。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--created

等待在“Succeeded”中使用“provisioningState”创建。

属性
Parameter group: Wait Condition Arguments
默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

属性
Parameter group: Wait Condition Arguments
--deleted

等到删除为止。

属性
Parameter group: Wait Condition Arguments
默认值: False
--exists

等待资源存在。

属性
Parameter group: Wait Condition Arguments
默认值: False
--interval

轮询间隔(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 30
--timeout

最大等待(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

属性
Parameter group: Wait Condition Arguments
默认值: 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

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

--verbose

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

属性
默认值: False