Edit

Share via


New-AzHDInsightClusterAutoscaleConfiguration

Creates a non-persisted object that describes the autoscale configuration of an Azure HDInsight cluster.

Syntax

LoadAutoscaleParameterSet (Default)

New-AzHDInsightClusterAutoscaleConfiguration
    -MinWorkerNodeCount <Int32>
    -MaxWorkerNodeCount <Int32>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ScheduleAutoscaleParameterSet

New-AzHDInsightClusterAutoscaleConfiguration
    -TimeZone <String>
    -Condition <System.Collections.Generic.List`1[Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightAutoscaleCondition]>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The cmdlet New-AzHDInsightClusterAutoscaleConfiguration creates a non-persisted object that describes the autoscale configuration of an Azure HDInsight cluster.

Examples

Example 1: Create an object which describes Load-based autoscale configuration

New-AzHDInsightClusterAutoscaleConfiguration -MinWorkerNodeCount 3 -MaxWorkerNodeCount 5

This command creates an object which describes Load-based autoscale configuration.

Example 2: Create an object which describes Schedule-based autoscale configuration

# Create an autoscale condition firstly
$condition=New-AzHDInsightClusterAutoscaleScheduleCondition -Day Monday -Time 09:00 -WorkerNodeCount 5
New-AzHDInsightClusterAutoscaleConfiguration -TimeZone ([System.TimeZoneInfo]::Local).Id `
        -Condition $condition

This command creates an object which describes Schedule-based autoscale configuration.

Parameters

-Condition

Gets or sets the condition of schedule-based autoscale.

Parameter properties

Type:

List<T>[AzureHDInsightAutoscaleCondition]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ScheduleAutoscaleParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxWorkerNodeCount

Gets or sets the maximal workernode count of load-based autoscale.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

LoadAutoscaleParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MinWorkerNodeCount

Gets or sets the minimal workernode count of load-based autoscale.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

LoadAutoscaleParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TimeZone

Gets or sets the time zone of schedule-based autoscale.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ScheduleAutoscaleParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

AzureHDInsightAutoscale