< Back

New-AzureRmAlertRuleWebhook

Tue Jan 29, 2019 9:48 pm

NAME New-AzureRmAlertRuleWebhook



SYNOPSIS

Creates an alert rule webhook.





SYNTAX

New-AzureRmAlertRuleWebhook [-ServiceUri] <String> [[-Property] <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The New-AzureRmAlertRuleWebhook cmdlet creates an alert rule webhook.





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



-Property <Hashtable>

Specifies the list of properties in the format @(property1 = 'value1',....).



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ServiceUri <String>

Specifies the service URI.



Required? true

Position? 0

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







NOTES









Example 1: Create an alert rule webhook



PS C:\\>New-AzureRmAlertRuleWebhook -ServiceUri "http://contoso.com"



This command creates an alert rule webhook by specifying only the service URI.





Example 2: Create a webhook with one property



PS C:\\>$Actual = New-AzureRmAlertRuleWebhook -ServiceUri "http://contoso.com" -Properties @{prop1 = 'value1'}



This command creates an alert rule webhook for Contoso.com that has one property, and then stores it in the $Actual variable.







RELATED LINKS

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

Add-AzureRmLogAlertRule

Add-AzureRmMetricAlertRule

Add-AzureRmWebtestAlertRule

New-AzureRmAlertRuleEmail

New-AzureRmAutoscaleWebhook