你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzActivityLogAlertAlertRuleLeafConditionObject

Create an in-memory object for AlertRuleLeafCondition.

Syntax

New-AzActivityLogAlertAlertRuleLeafConditionObject
   [-ContainsAny <String[]>]
   [-Equal <String>]
   [-Field <String>]
   [<CommonParameters>]

Description

Create an in-memory object for AlertRuleLeafCondition.

Examples

Example 1: Create Alert rule leaf condition

New-AzActivityLogAlertAlertRuleLeafConditionObject -Field properties.incidentType -Equal Maintenance

Create Alert rule leaf condition

Parameters

-ContainsAny

The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.

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

-Equal

The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.

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

-Field

The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

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

Outputs

AlertRuleLeafCondition