共用方式為


New-AzActionGroupWebhookReceiverObject

建立 WebhookReceiver 的記憶體內部物件。

語法

New-AzActionGroupWebhookReceiverObject
   -Name <String>
   -ServiceUri <String>
   [-IdentifierUri <String>]
   [-ObjectId <String>]
   [-TenantId <String>]
   [-UseAadAuth <Boolean>]
   [-UseCommonAlertSchema <Boolean>]
   [<CommonParameters>]

Description

建立 WebhookReceiver 的記憶體內部物件。

範例

範例 1:使用 aad 驗證建立動作群組 Webhook 接收者

New-AzActionGroupWebhookReceiverObject -Name "sample webhook" -ServiceUri "http://www.example.com/webhook1" -IdentifierUri "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a" -ObjectId "d3bb868c-fe44-452c-aa26-769a6538c808" -TenantId 68a4459a-ccb8-493c-b9da-dd30457d1b84 -UseAadAuth $true -UseCommonAlertSchema $true

IdentifierUri        : http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a
Name                 : sample webhook
ObjectId             : d3bb868c-fe44-452c-aa26-769a6538c808
ServiceUri           : http://www.example.com/webhook1
TenantId             : 68a4459a-ccb8-493c-b9da-dd30457d1b84
UseAadAuth           : True
UseCommonAlertSchema : True

此命令會建立動作群組 Webhook 接收者物件。

範例 2:建立最小動作群組 Webhook 接收者

New-AzActionGroupWebhookReceiverObject -Name "sample webhook" -ServiceUri "http://www.example.com/webhook2"

IdentifierUri        : 
Name                 : sample webhook
ObjectId             : 
ServiceUri           : http://www.example.com/webhook2
TenantId             : 
UseAadAuth           : 
UseCommonAlertSchema :

此命令會建立動作群組電子郵件接收者物件。

參數

-IdentifierUri

指出 aad 驗證的識別碼 URI。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

Webhook 接收者的名稱。 名稱在動作群組內的所有接收者中必須是唯一的。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ObjectId

指出 aad 驗證的 Webhook 應用程式物件識別碼。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ServiceUri

應該傳送 Webhook 的 URI。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-TenantId

指出 aad 驗證的租用戶標識碼。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-UseAadAuth

指出是否使用 AAD 驗證。

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-UseCommonAlertSchema

指出是否要使用一般警示架構。

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸出

WebhookReceiver