Webhook not working with Azure

Hi,

I am trying to create an event subscription in Azure to send telemetry to Losant via a webhook.

I get the following error in Azure: Webhook validation handshake failed for https://triggers.losant.com/webhooks/1xxxxxxxxxxx. Http POST request retuned 2XX response with response body { “success”: true }.When a validation request is accepted without validation code in the response body, Http GET is expected on the validation url included in the validation event(within 10 minutes).

I tried to follow microsofts troubleshooting but got confused really.
Has anybody come across this and found a solution?

thanks

Hello @Eduardo_wewer,

When you first create your EventGrid subscription, the first message sent to your Webhook URL by Azure is a request for validation. So, you will need to set up a Losant Workflow to reply back to the request with the request validation code that Azure sends along in the first request to the webhook.

We cover this exact thing in our Azure IoT Guide. :slight_smile:

Let me know if this answers your question!

Thank you,
Heath