New-AzureRmAlertRuleWebhook

Creates an alert rule webhook.

Warning

The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.

Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.

Syntax

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

Description

The New-AzureRmAlertRuleWebhook cmdlet creates an alert rule webhook.

Examples

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.

Parameters

-DefaultProfile

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

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

-Property

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

Type:Hashtable
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ServiceUri

Specifies the service URI.

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

Inputs

String

Hashtable

Outputs

RuleWebhookAction