File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Start an Azure Automation runbook from a webhook
3
3
description : This article tells how to use a webhook to start a runbook in Azure Automation from an HTTP call.
4
4
services : automation
5
5
ms.subservice : process-automation
6
- ms.date : 07/21/2021
6
+ ms.date : 05/09/2022
7
7
ms.topic : conceptual
8
8
ms.custom : devx-track-azurepowershell, devx-track-arm-template
9
9
---
@@ -104,16 +104,14 @@ Consider the following strategies:
104
104
write-output "start"
105
105
write-output ("object type: {0}" -f $WebhookData.gettype())
106
106
write-output $WebhookData
107
- #write-warning (Test-Json -Json $WebhookData)
108
- $Payload = $WebhookData | ConvertFrom-Json
109
107
write-output "`n`n"
110
- write-output $Payload .WebhookName
111
- write-output $Payload .RequestBody
112
- write-output $Payload .RequestHeader
108
+ write-output $WebhookData .WebhookName
109
+ write-output $WebhookData .RequestBody
110
+ write-output $WebhookData .RequestHeader
113
111
write-output "end"
114
112
115
- if ($Payload .RequestBody) {
116
- $names = (ConvertFrom-Json -InputObject $Payload .RequestBody)
113
+ if ($WebhookData .RequestBody) {
114
+ $names = (ConvertFrom-Json -InputObject $WebhookData .RequestBody)
117
115
118
116
foreach ($x in $names)
119
117
{
You can’t perform that action at this time.
0 commit comments