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 "00001111-aaaa-2222-bbbb-3333cccc4444" -TenantId 00001111-aaaa-2222-bbbb-3333cccc4444 -UseAadAuth $true -UseCommonAlertSchema $true
IdentifierUri : http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a
Name : sample webhook
ObjectId : 00001111-aaaa-2222-bbbb-3333cccc4444
ServiceUri : http://www.example.com/webhook1
TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure PowerShell