Modifier

Partager via


New-AzEventGridFilterObject

Create an in-memory object for Filter.

Syntax

New-AzEventGridFilterObject
   -OperatorType <String>
   [-Key <String>]
   [<CommonParameters>]

Description

Create an in-memory object for Filter.

Examples

Example 1: Create an in-memory object for Filter.

New-AzEventGridFilterObject -OperatorType NumberIn -Key "TestKey"

Key     OperatorType
---     ------------
TestKey NumberIn

Create an in-memory object for Filter.

Parameters

-Key

The field/property in the event based on which you want to filter.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OperatorType

The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Filter