Set-AzAutomationWebhook
In questo articolo
Syntax
Syntax
Default (Default)
Description
Examples
Examples
Example 1: Disable a webhook
Example 2
Example 3
Parameters
Parameters
-AutomationAccountName
-DefaultProfile
-IsEnabled
-Name
-Parameters
-ResourceGroupName
-RunOn
CommonParameters
Inputs
Inputs
String
Nullable<T>
IDictionary
Outputs
Outputs
Webhook
Related Links
Mostra 3 in più
Modifies a webhook for an Automation runbook.
Set-AzAutomationWebhook
[-Name] <String>
[-IsEnabled] <Boolean>
[[-Parameters] <IDictionary>]
[-RunOn <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
The Set-AzAutomationWebhook cmdlet modifies a webhook for an Azure Automation runbook.
Example 1: Disable a webhook
Set-AzAutomationWebhook -Name "Webhook01" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01" -IsEnabled $False
This command disables a webhook named Webhook01 in the Automation account named AutomationAccount01.
Set-AzAutomationWebhook -Name "Webhook01" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01" -RunOn 'Windows'
This command sets the run on value for the webhook and forces the runbook to be run on a Hybrid Worker group called Windows.
Set-AzAutomationWebhook -Name "Webhook01" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01" -RunOn $null
This command updates the run on value for the webhook and forces the runbook to be run on an Azure runbook worker.
Specifies the name of an Automation account in which this cmdlet modifies a webhook.
Espandi la tabella
Type: String
Default value: None
Supports wildcards: False
DontShow: False
(All)
Espandi la tabella
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
The credentials, account, tenant, and subscription used for communication with azure
Espandi la tabella
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
(All)
Espandi la tabella
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Specifies whether the webhook is enabled.
Espandi la tabella
(All)
Espandi la tabella
Position: 3
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
Specifies a name of the webhook that this cmdlet modifies.
Espandi la tabella
Type: String
Default value: None
Supports wildcards: False
DontShow: False
(All)
Espandi la tabella
Position: 2
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
Specifies a dictionary of key/value pairs.
The keys are the runbook parameter names.
The values are the runbook parameter values.
When the runbook starts in response to a webhook, these parameters are passed to the runbook.
Espandi la tabella
Type: IDictionary
Default value: None
Supports wildcards: False
DontShow: False
(All)
Espandi la tabella
Position: 4
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
Specifies the name of the resource group for which this cmdlet modifies a webhook.
Espandi la tabella
Type: String
Default value: None
Supports wildcards: False
DontShow: False
(All)
Espandi la tabella
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
Optional name of the hybrid agent which should execute the runbook
Espandi la tabella
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: HybridWorker
(All)
Espandi la tabella
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
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 .