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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure PowerShell