Edit

Share via


New-AzCostManagementQueryComparisonExpressionObject

Create an in-memory object for QueryComparisonExpression.

Syntax

Default (Default)

New-AzCostManagementQueryComparisonExpressionObject
    -Name <String>
    -Value <String[]>
    [<CommonParameters>]

Description

Create an in-memory object for QueryComparisonExpression.

Examples

Example 1: Create a comparison expression object of query for cost management export

New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Value @('East US', 'West Europe')
Name             Operator Value
----             -------- -----
ResourceLocation In       {East US, West Europe}

This command creates a comparison expression object of query for cost management export.

Parameters

-Name

The name of the column to use in comparison.

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

-Value

Array of values to use for comparison.

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.

Outputs

QueryComparisonExpression