Skip to content

Commit 2ea0695

Browse files
authored
Merge pull request #189920 from KrishnaG-MSFT/patch-179
(AzureCXP) MicrosoftDocs/azure-docs#88597
2 parents c32c76d + 89765a1 commit 2ea0695

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

articles/automation/automation-webhooks.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,19 @@ param
9898
[object] $WebhookData
9999
)
100100
101-
if ($WebhookData.RequestBody) {
102-
$names = (ConvertFrom-Json -InputObject $WebhookData.RequestBody)
101+
write-output "start"
102+
write-output ("object type: {0}" -f $WebhookData.gettype())
103+
write-output $WebhookData
104+
#write-warning (Test-Json -Json $WebhookData)
105+
$Payload = $WebhookData | ConvertFrom-Json
106+
write-output "`n`n"
107+
write-output $Payload.WebhookName
108+
write-output $Payload.RequestBody
109+
write-output $Payload.RequestHeader
110+
write-output "end"
111+
112+
if ($Payload.RequestBody) {
113+
$names = (ConvertFrom-Json -InputObject $Payload.RequestBody)
103114
104115
foreach ($x in $names)
105116
{
@@ -525,4 +536,4 @@ Automation webhooks can also be created using [Azure Resource Manager](../azure-
525536
526537
## Next steps
527538
528-
* To trigger a runbook from an alert, see [Use an alert to trigger an Azure Automation runbook](automation-create-alert-triggered-runbook.md).
539+
* To trigger a runbook from an alert, see [Use an alert to trigger an Azure Automation runbook](automation-create-alert-triggered-runbook.md).

0 commit comments

Comments
 (0)