New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject

AlertRuleAnyOfOrLeafCondition のメモリ内オブジェクトを作成します。

構文

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

説明

AlertRuleAnyOfOrLeafCondition のメモリ内オブジェクトを作成します。

例 1: アラート ルールの条件を作成する

New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Administrative -Field category

アラート ルールの条件を作成する

例 2: リーフ条件を含むアラート ルール条件を作成する

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

リーフ条件を使用してアラート ルール条件を作成する

パラメーター

-AnyOf

メンバー リーフ条件の少なくとも 1 つが満たされたときに満たされるアクティビティ ログ アラート ルールの条件。 構築するには、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'、'status'、'subStatus'、'resourceType'、または 'properties' で始まるもの。

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

出力

AlertRuleAnyOfOrLeafCondition