New-AzAutoscaleScaleRuleMetricDimensionObject
Create an in-memory object for ScaleRuleMetricDimension.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | ScaleRuleMetricDimensionOperationType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Value
list of dimension values. For example: ["App1","App2"].
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
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.