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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell