az hdinsight autoscale

Manage HDInsight cluster's Autoscale configuration.

Commands

az hdinsight autoscale condition

Manage schedule condition of the HDInsight cluster which enabled Schedule-based Autoscale.

az hdinsight autoscale condition create

Add a new schedule condition.

az hdinsight autoscale condition delete

Delete schedule condition.

az hdinsight autoscale condition list

List all schedule conditions.

az hdinsight autoscale condition update

Update a schedule condition.

az hdinsight autoscale condition wait

Place the CLI in a waiting state until an operation is complete.

az hdinsight autoscale create

Enable Autoscale for a running cluster.

az hdinsight autoscale delete

Disable Autoscale for a running cluster.

az hdinsight autoscale list-timezones

List the available timezone name when enabling Schedule-based Autoscale.

az hdinsight autoscale show

Get the Autoscale configuration of a specified cluster.

az hdinsight autoscale update

Update the Autoscale configuration.

az hdinsight autoscale wait

Place the CLI in a waiting state until an operation is complete.

az hdinsight autoscale create

Enable Autoscale for a running cluster.

az hdinsight autoscale create --cluster-name
                              --resource-group
                              --type {Load, Schedule}
                              [--days {Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}]
                              [--max-workernode-count]
                              [--min-workernode-count]
                              [--no-wait]
                              [--subscription]
                              [--time]
                              [--timezone]
                              [--workernode-count]
                              [--yes]

Examples

Enable Load-based Autoscale for a running cluster.

az hdinsight autoscale create --resource-group MyResourceGroup --cluster-name MyCluster --type Load \
--min-workernode-count 3 --max-workernode-count 5

Enable Schedule-based Autoscale for a running cluster.

az hdinsight autoscale create --resource-group MyResourceGroup --cluster-name MyCluster --type Schedule \
--timezone "Pacific Standard Time" --days Monday Tuesday --time 09:00 --workernode-count 5

Required Parameters

--cluster-name

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--type

The autoscale type.

accepted values: Load, Schedule

Optional Parameters

--days

A space-delimited list of schedule day.

accepted values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
--max-workernode-count

The max workernode count for Load-based atuoscale.

--min-workernode-count

The minimal workernode count for Load-based atuoscale.

--no-wait

Do not wait for the long-running operation to finish.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--time

The 24-hour time in the form xx:xx in days.

--timezone

The timezone for schedule autoscale type. Values from az hdinsight autoscale list-timezones.

--workernode-count

The schedule workernode count.

--yes -y

Do not prompt for confirmation.

az hdinsight autoscale delete

Disable Autoscale for a running cluster.

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

Examples

Disable Autoscale for a running cluster.

az hdinsight autoscale delete --resource-group MyResourceGroup --cluster-name MyCluster

Required Parameters

--cluster-name

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az hdinsight autoscale list-timezones

List the available timezone name when enabling Schedule-based Autoscale.

az hdinsight autoscale list-timezones [--subscription]

Examples

List the available timezone name.

az hdinsight autoscale list-timezones

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az hdinsight autoscale show

Get the Autoscale configuration of a specified cluster.

az hdinsight autoscale show --cluster-name
                            --resource-group
                            [--query-examples]
                            [--subscription]

Examples

Get the Autoscale configuration.

az hdinsight autoscale show --resource-group MyResourceGroup --cluster-name MyCluster

Required Parameters

--cluster-name

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az hdinsight autoscale update

Update the Autoscale configuration.

az hdinsight autoscale update --cluster-name
                              --resource-group
                              [--max-workernode-count]
                              [--min-workernode-count]
                              [--no-wait]
                              [--subscription]
                              [--timezone]

Examples

Update Load-based Autoscale related configuration.

az hdinsight autoscale update --resource-group MyResourceGroup --cluster-name MyCluster --max-workernode-count 5

Update Schedule-based Autoscale related configuration.

az hdinsight autoscale update --resource-group MyResourceGroup --cluster-name MyCluster --timezone "China Standard Time"

Required Parameters

--cluster-name

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--max-workernode-count

The max workernode count for Load-based atuoscale.

--min-workernode-count

The minimal workernode count for Load-based atuoscale.

--no-wait

Do not wait for the long-running operation to finish.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--timezone

The timezone for schedule autoscale type. Values from az hdinsight autoscale list-timezones.

az hdinsight autoscale wait

Place the CLI in a waiting state until an operation is complete.

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

Required Parameters

--name -n

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--interval

Polling interval in seconds.

default value: 30
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.