I am working with azure automation, triggered by webhooks.
Typically this runs directly on Azure and works fine, the webhook data payload is received and handled as a PSCustomObject.
I now need to run the same on a Hybrid Worker because of a OnPrem requirement. When updating the webhook to run on a HW, and sending exactly the same payload, the web hook data is treated as a System.String.
This is obviously causing some challenges; I could look at parsing the string into individual elements again, but that is a PITA.
Any thoughts on why there is a difference on how the webhook data is treated? Or better, how to resolve it.
I've used the very simple example here: https://learn.microsoft.com/en-us/azure/automation/automation-webhooks?tabs=portal#use-a-webhook