I mainly want to create a standard logic app that use this trigger: When a resource event occurs
:
I want to be able to create this logic app via ARM. I have added templates for logic app, workflows, API connection and event grid subscription. but I get this error:
##[error]Url validation: Webhook validation handshake failed for https://myLogicApp.azurewebsites.net/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/9382f38a3bc54b528e50dcc4351cd665/triggers/When_a_resource_event_occurs/paths/invoke. Http POST request retuned 2XX response with response body . 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).
So, I have tried to create the eventgrid subscription manually in the portal through copying the workflow url manually and pasting it under the webhook endpoint url (That I need to fill to create the subscription manually). However, this didn't work either. I got a very similar error:
I did the previous step just as a debugging step. I know that if I created the trigger in the workflow manually, the problem will be fixed and the subscription will be created alone (or by Azure backend system).
So, is there anyone that has countered this problem with the standard logic app? Do you have any idea to how to solve this problem?
I mean how to create an eventgrid subscription ARM template that connects to a standard logic app??