New-AzAlertRuleWebhook

Tworzy element webhook reguły alertu.

Składnia

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

Opis

Polecenie cmdlet New-AzAlertRuleWebhook tworzy element webhook reguły alertu.

Przykłady

Przykład 1. Tworzenie elementu webhook reguły alertu

New-AzAlertRuleWebhook -ServiceUri "http://contoso.com"

To polecenie tworzy element webhook reguły alertu, określając tylko identyfikator URI usługi.

Przykład 2. Tworzenie elementu webhook z jedną właściwością

$Actual = New-AzAlertRuleWebhook -ServiceUri "http://contoso.com" -Property @{prop1 = 'value1'}

To polecenie tworzy element webhook reguły alertu dla Contoso.com, który ma jedną właściwość, a następnie przechowuje go w zmiennej $Actual.

Parametry

-DefaultProfile

Poświadczenia, konto, dzierżawa i subskrypcja używane do komunikacji z platformą Azure

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

-Property

Określa listę właściwości w formacie @(property1 = 'value1',....).

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

-ServiceUri

Określa identyfikator URI usługi.

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

Dane wejściowe

String

Hashtable

Dane wyjściowe

RuleWebhookAction