New-​Autoscale​Rule

{{Fill in the Synopsis}}

Syntax

New-AutoscaleRule
   -MetricName <String>
   -MetricResourceId <String>
   -MetricStatistic <MetricStatisticType>
   -Operator <ComparisonOperationType>
   -ScaleActionCooldown <TimeSpan>
   -ScaleActionDirection <ScaleDirection>
   -ScaleActionScaleType <ScaleType>
   -ScaleActionValue <String>
   -Threshold <Double>
   [-TimeAggregationOperator <TimeAggregationType>]
   -TimeGrain <TimeSpan>
   [-TimeWindow <TimeSpan>]
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-MetricName

The metric name for the setting

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-MetricResourceId

The metric resource id for the setting

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-MetricStatistic

The setting metric statistic

Type:MetricStatisticType
Parameter Sets:Average, Min, Max, Sum
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Operator

The setting condition operator

Type:ComparisonOperationType
Parameter Sets:Equals, NotEquals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ScaleActionCooldown

The scale action cooldown time for the setting

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ScaleActionDirection

The acale action direction for the setting

Type:ScaleDirection
Parameter Sets:None, Increase, Decrease
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ScaleActionScaleType

The scale action type for the setting

Type:ScaleType
Parameter Sets:ChangeSize, ChangeCount, PercentChangeCount, ExactCount
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ScaleActionValue

The scale action value for the setting

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Threshold

The threshold for the setting condition

Type:Double
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TimeGrain

The metric trigger time grain for the setting

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-TimeAggregationOperator

The time aggregation operator for the setting

Type:TimeAggregationType
Parameter Sets:Average, Minimum, Maximum, Last, Total, Count
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TimeWindow

The metric trigger timewindow for the setting

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

System.String

Outputs

Microsoft.Azure.Management.Insights.Models.ScaleRule