你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzActionGroupAutomationRunbookReceiverObject

Create an in-memory object for AutomationRunbookReceiver.

Syntax

New-AzActionGroupAutomationRunbookReceiverObject
   -AutomationAccountId <String>
   -IsGlobalRunbook <Boolean>
   -RunbookName <String>
   -WebhookResourceId <String>
   [-Name <String>]
   [-ServiceUri <String>]
   [-UseCommonAlertSchema <Boolean>]
   [<CommonParameters>]

Description

Create an in-memory object for AutomationRunbookReceiver.

Examples

Example 1: create action group automation runbook receiver

New-AzActionGroupAutomationRunbookReceiverObject -AutomationAccountId "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest" -RunbookName "sample runbook" -WebhookResourceId "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084" -Name "testRunbook" -UseCommonAlertSchema $true -IsGlobalRunbook $false

AutomationAccountId  : /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/a 
                       utomationAccounts/runbooktest
IsGlobalRunbook      : False
Name                 : testRunbook
RunbookName          : sample runbook
ServiceUri           : 
UseCommonAlertSchema : True
WebhookResourceId    : /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/a 
                       utomationAccounts/runbooktest/webhooks/Alert1510184037084

This command creates action group automation runbook receiver object.

Parameters

-AutomationAccountId

The Azure automation account Id which holds this runbook and authenticate to Azure resource.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-IsGlobalRunbook

Indicates whether this instance is global runbook.

Type:Boolean
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Indicates name of the webhook.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RunbookName

The name for this runbook.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ServiceUri

The URI where webhooks should be sent.

Type:String
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

-WebhookResourceId

The resource id for webhook linked to this runbook.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

AutomationRunbookReceiver