Skip to content

Commit 9d5350d

Browse files
authored
Added runOn key for hybrid worker.
Updated az rest command to specify hybrid worker with runOn
1 parent b782a5e commit 9d5350d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pentesting-cloud/azure-security/az-privilege-escalation/az-automation-accounts-privesc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,13 @@ New-AzAutomationWebHook -Name <webhook-name> -ResourceGroupName <res-group> -Aut
164164
With AzureCLI and REST:
165165
```bash
166166
az rest --method put \
167-
--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" \
167+
--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" \
168168
--body '{
169169
"name": "<webhook-name>",
170170
"properties": {
171171
"isEnabled": true,
172172
"expiryTime": "2027-12-31T23:59:59+00:00",
173+
"runOn": "<worker name>",
173174
"runbook": {
174175
"name": "<runbook-name>"
175176
}

0 commit comments

Comments
 (0)