File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 98
98
[object] $WebhookData
99
99
)
100
100
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)
103
114
104
115
foreach ($x in $names)
105
116
{
@@ -525,4 +536,4 @@ Automation webhooks can also be created using [Azure Resource Manager](../azure-
525
536
526
537
## Next steps
527
538
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).
You can’t perform that action at this time.
0 commit comments