Επεξεργασία

Κοινή χρήση μέσω


New-AzActionGroupAutomationRunbookReceiverObject

Create an in-memory object for AutomationRunbookReceiver.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IsGlobalRunbook

Indicates whether this instance is global runbook.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Indicates name of the webhook.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunbookName

The name for this runbook.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServiceUri

The URI where webhooks should be sent.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseCommonAlertSchema

Indicates whether to use common alert schema.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WebhookResourceId

The resource id for webhook linked to this runbook.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

AutomationRunbookReceiver