Added runOn key for hybrid worker.

Updated az rest command to specify hybrid worker with runOn
This commit is contained in:
Jacob H
2026-01-18 10:14:15 -06:00
committed by GitHub
parent b782a5ebb8
commit 9d5350dc2e

View File

@@ -164,12 +164,13 @@ New-AzAutomationWebHook -Name <webhook-name> -ResourceGroupName <res-group> -Aut
With AzureCLI and REST:
```bash
az rest --method put \
--uri "https://management.azure.com/subscriptions/<subscriptionID>/resourceGroups/<res-group>/providers/Microsoft.Automation/automationAccounts/<automation-account-name>/webhooks/{webhook-name}?api-version=2015-10-31" \
--uri "https://management.azure.com/subscriptions/<subscriptionID>/resourceGroups/<res-group>/providers/Microsoft.Automation/automationAccounts/<automation-account-name>/webhooks/<webhook-name>?api-version=2015-10-31" \
--body '{
"name": "<webhook-name>",
"properties": {
"isEnabled": true,
"expiryTime": "2027-12-31T23:59:59+00:00",
"runOn": "<worker name>",
"runbook": {
"name": "<runbook-name>"
}