你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzAutoscaleScaleRuleMetricDimensionObject

Create an in-memory object for ScaleRuleMetricDimension.

Syntax

New-AzAutoscaleScaleRuleMetricDimensionObject
   -DimensionName <String>
   -Operator <ScaleRuleMetricDimensionOperationType>
   -Value <String[]>
   [<CommonParameters>]

Description

Create an in-memory object for ScaleRuleMetricDimension.

Examples

Example 1: Create scale rule metric dimension object

New-AzAutoscaleScaleRuleMetricDimensionObject -DimensionName VMName -Operator 'Equals' -Value test-vm

Create scale rule metric dimension object

Parameters

-DimensionName

Name of the dimension.

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

-Operator

the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values.

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

-Value

list of dimension values. For example: ["App1","App2"].

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

Outputs

ScaleRuleMetricDimension