Share via


New-AzHDInsightClusterAutoscaleConfiguration

Hiermee maakt u een niet-persistent object dat de configuratie van automatische schaalaanpassing van een Azure HDInsight-cluster beschrijft.

Syntax

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

Description

Met de cmdlet New-AzHDInsightClusterAutoscaleConfiguration wordt een niet-persistent object gemaakt dat de configuratie van automatische schaalaanpassing van een Azure HDInsight-cluster beschrijft.

Voorbeelden

Voorbeeld 1: Een object maken waarin de configuratie van automatisch schalen op basis van belasting wordt beschreven

New-AzHDInsightClusterAutoscaleConfiguration -MinWorkerNodeCount 3 -MaxWorkerNodeCount 5

Met deze opdracht maakt u een object waarin de configuratie van automatisch schalen op basis van belasting wordt beschreven.

Voorbeeld 2: Een object maken waarin de configuratie van automatische schaalaanpassing op basis van planning wordt beschreven

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

Met deze opdracht maakt u een object waarin de configuratie van automatische schaalaanpassing op basis van planning wordt beschreven.

Parameters

-Condition

Hiermee haalt u de voorwaarde van automatisch schalen op basis van een planning op of stelt u deze in.

Type:List<T>[AzureHDInsightAutoscaleCondition]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxWorkerNodeCount

Hiermee haalt u het maximale aantal werkknooppunten op van automatisch schalen op basis van belasting.

Type:Int32
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-MinWorkerNodeCount

Hiermee haalt u het minimale aantal werkknooppunten op van automatisch schalen op basis van belasting.

Type:Int32
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TimeZone

Hiermee haalt u de tijdzone van automatisch schalen op basis van een planning op of stelt u deze in.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

None

Uitvoerwaarden

AzureHDInsightAutoscale