< Back

New-AzureRmActivityLogAlertCondition

Tue Jan 29, 2019 9:48 pm

NAME New-AzureRmActivityLogAlertCondition



SYNOPSIS

Creates an new activity log alert condition object in memory.





SYNTAX

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





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Equal <String>

Specifies the equals property for the leaf condition.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Field <String>

Specifies the field for the condition.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

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







NOTES









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.)







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... tcondition

Set-AzureRmActivityLogAlert

Enable-AzureRmActivityLogAlert

Disable-AzureRmActivityLogAlert

Get-AzureRmActivityLogAlert

Remove-AzureRmActivityLogAlert

New-AzureRmActionGroup