New-AzActionGroupWebhookReceiverObject
Skapa ett minnesinternt objekt för WebhookReceiver.
Syntax
New-AzActionGroupWebhookReceiverObject
-Name <String>
-ServiceUri <String>
[-IdentifierUri <String>]
[-ObjectId <String>]
[-TenantId <String>]
[-UseAadAuth <Boolean>]
[-UseCommonAlertSchema <Boolean>]
[<CommonParameters>]
Description
Skapa ett minnesinternt objekt för WebhookReceiver.
Exempel
Exempel 1: Skapa webhooksmottagare för åtgärdsgrupp med aad-autentisering
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
Det här kommandot skapar ett webhook-mottagarobjekt för åtgärdsgruppen.
Exempel 2: Skapa webhookmottagare för minsta åtgärdsgrupp
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 :
Det här kommandot skapar objekt för e-postmottagare för åtgärdsgrupp.
Parametrar
-IdentifierUri
Anger identifierarens URI för aad-autentisering.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Namnet på webhookens mottagare. Namn måste vara unika för alla mottagare i en åtgärdsgrupp.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ObjectId
Anger webhooksappens objekt-ID för aad-autentisering.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ServiceUri
Den URI där webhooks ska skickas.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-TenantId
Anger klient-ID för aad-autentisering.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-UseAadAuth
Anger om AAD-autentisering ska användas eller inte.
Typ: | Boolean |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-UseCommonAlertSchema
Anger om du vill använda ett vanligt aviseringsschema.
Typ: | Boolean |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Utdata
Azure PowerShell