New-AzActivityLogAlertAlertRuleLeafConditionObject
Create an in-memory object for AlertRuleLeafCondition.
Syntax
Default (Default)
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.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Equal
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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'.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
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.