New-AzActionGroupWebhookReceiverObject
Create an in-memory object for WebhookReceiver.
Syntax
New-AzActionGroupWebhookReceiverObject
-Name <String>
-ServiceUri <String>
[-IdentifierUri <String>]
[-ObjectId <String>]
[-TenantId <String>]
[-UseAadAuth <Boolean>]
[-UseCommonAlertSchema <Boolean>]
[<CommonParameters>]
Description
Create an in-memory object for WebhookReceiver.
Examples
Example 1: create action group webhook receiver with aad auth
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
This command creates action group webhook receiver object.
Example 2: create minimum action group webhook receiver
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 :
This command creates action group email receiver object.
Parameters
-IdentifierUri
Indicates the identifier uri for aad auth.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the webhook receiver. Names must be unique across all receivers within an action group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ObjectId
Indicates the webhook app object Id for aad auth.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServiceUri
The URI where webhooks should be sent.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TenantId
Indicates the tenant id for aad auth.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseAadAuth
Indicates whether or not use AAD authentication.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseCommonAlertSchema
Indicates whether to use common alert schema.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure PowerShell