external help file | Module Name | ms.assetid | online version | schema |
---|---|---|---|---|
Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll-Help.xml |
Az.Monitor |
B5F2388E-0136-4F8A-8577-67CE2A45671E |
2.0.0 |
Creates a metric dimension filter that can be used to query metrics.
New-AzMetricFilter [-Dimension] <String> [-Operator] <String> [-Value] <String[]>
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
The New-AzMetricFilter cmdlet creates a metric dimension filter that can be used to query metrics.
PS C:\>New-AzMetricFilter -Dimension City -Operator eq -Value "Seattle","New York"
This command creates metric dimension filter of the format "City eq 'Seattle' or City eq 'New York'".
The credentials, account, tenant, and subscription used for communication with Azure.
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the metric dimension.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the operator used to select the metric dimension.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the array of metric dimension values.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.