az hdinsight autoscale condition

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

Commands

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

Add a new schedule condition.

az hdinsight autoscale condition create --cluster-name
                                        --days {Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}
                                        --resource-group
                                        --time
                                        --workernode-count
                                        [--no-wait]
                                        [--subscription]

Examples

Add a new schedule condition.

az hdinsight autoscale condition create --resource-group MyResourceGroup --cluster-name MyCluster \
--days Monday Tuesday --time 09:00 --workernode-count 5

Required Parameters

--cluster-name

The name of the cluster.

--days

A space-delimited list of schedule day.

accepted values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
--resource-group -g

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

--time

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

--workernode-count

The schedule workernode count.

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.

az hdinsight autoscale condition delete

Delete schedule condition.

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

Examples

Delete a schedule condition.

az hdinsight autoscale condition delete --resource-group MyResourceGroup --cluster-name MyCluster --index 0

Delete multiple schedule conditions.

az hdinsight autoscale condition delete --resource-group MyResourceGroup --cluster-name MyCluster --index 0 1

Required Parameters

--cluster-name

The name of the cluster.

--index

The Space-separated list of condition indices which starts with 0 to delete.

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

List all schedule conditions.

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

Examples

List all schedule conditions.

az hdinsight autoscale condition list --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 condition update

Update a schedule condition.

az hdinsight autoscale condition update --cluster-name
                                        --index
                                        --resource-group
                                        [--days {Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}]
                                        [--no-wait]
                                        [--subscription]
                                        [--time]
                                        [--workernode-count]

Examples

Update a schedule condition.

az hdinsight autoscale condition update --resource-group MyResourceGroup --cluster-name MyCluster --index 0\
--time 10:00 --workernode-count 5

Required Parameters

--cluster-name

The name of the cluster.

--index

The schedule condition index which starts with 0.

--resource-group -g

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

Optional Parameters

--days

A space-delimited list of schedule day.

accepted values: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
--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.

--workernode-count

The schedule workernode count.

az hdinsight autoscale condition wait

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

az hdinsight autoscale condition 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'.