New-AzureRmActivityLogAlertCondition

Creates an new activity log alert condition object in memory.

Syntax

New-AzureRmActivityLogAlertCondition
   -Field <String>
   -Equal <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzureRmActivityLogAlertCondition cmdlet creates new activity log alert condition object in memory.

Examples

Example 1: Create a new activity log alert condition object in memory.

PS C:\>$condition = New-AzureRmActivityLogAlertCondition -Field "Requests" -Equal "OtherField"

This command creates a new activity log alert condition object in memory.

NOTE: when this cmdlet is used with Set-AzureRmActivityLogAlert at least one of these objects, passed as parameters, must have its Field equal to "Category". Otherwise, the backend responds with a 400 (BadRequest.)

Required Parameters

-Equal

Specifies the equals property for the leaf condition.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Field

Specifies the field for the condition.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition