New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject

AlertRuleAnyOfOrLeafCondition에 대한 메모리 내 개체를 만듭니다.

Syntax

New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject
   [-AnyOf <IAlertRuleLeafCondition[]>]
   [-ContainsAny <String[]>]
   [-Equal <String>]
   [-Field <String>]
   [<CommonParameters>]

Description

AlertRuleAnyOfOrLeafCondition에 대한 메모리 내 개체를 만듭니다.

예제

예제 1: 경고 규칙 조건 만들기

New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Administrative -Field category

경고 규칙 조건 만들기

예제 2: 리프 조건이 있는 경고 규칙 조건 만들기

$any=New-AzActivityLogAlertAlertRuleLeafConditionObject -Field properties.incidentType -Equal Maintenance
New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -AnyOf $any

리프 조건을 사용하여 경고 규칙 조건 만들기

매개 변수

-AnyOf

멤버 리프 조건 중 하나 이상이 충족될 때 충족되는 활동 로그 경고 규칙 조건입니다. 생성하려면 ANYOF 속성에 대한 NOTES 섹션을 참조하고 해시 테이블을 만듭니다.

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

-ContainsAny

이벤트 필드의 값을 이 배열의 값(대/소문자를 구분하지 않음)과 비교하여 조건이 충족되는지 확인합니다.

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

-Equal

이벤트 필드의 값을 이 값(대/소문자를 구분하지 않음)과 비교하여 조건이 충족되는지 확인합니다.

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

-Field

이 조건이 검사할 활동 로그 이벤트 필드의 이름입니다. 이 필드에 사용할 수 있는 값은 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', '상태', 'subStatus', 'resourceType' 또는 'properties'로 시작하는 모든 값입니다.

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

출력

AlertRuleAnyOfOrLeafCondition