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 "ffffffff-eeee-dddd-cccc-bbbbbbbbbbb0" -TenantId aaaabbbb-0000-cccc-1111-dddd2222eeee -UseAadAuth $true -UseCommonAlertSchema $true
IdentifierUri : http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a
Name : sample webhook
ObjectId : ffffffff-eeee-dddd-cccc-bbbbbbbbbbb0
ServiceUri : http://www.example.com/webhook1
TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee
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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure PowerShell