New-AzAlertRuleWebhook

アラート ルール Webhook を作成します。

構文

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

説明

New-AzAlertRuleWebhook コマンドレットは、アラート ルール webhook を作成します。

例 1: アラート ルール Webhook を作成する

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

このコマンドは、サービス URI のみを指定してアラート ルール webhook を作成します。

例 2: 1 つのプロパティを使用して Webhook を作成する

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

このコマンドは、1 つのプロパティを持つ Contoso.com のアラート ルール webhook を作成し、$Actual変数に格納します。

パラメーター

-DefaultProfile

Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション

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

-Property

@(property1 = 'value1',....) の形式でプロパティの一覧を指定します。

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

-ServiceUri

サービス URI を指定します。

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

入力

String

Hashtable

出力

RuleWebhookAction