Synapse custom event trigger publish is not happening on event grid with master branch
Hi all,
I have requirement to trigger synapse pipeline when I publish event on event grid.
Without git integration when I configure the Trigger and click on publish button, subscription is appearing on Event grid and trigger is working fine.
With git integration when I create a feature branch and configure trigger, I can't publish as publish button is disabled but can see the templates generated for tigger and pipeline in code.
When I merge code with master branch subscription is not reflecting on Event grid, I am not sure how to publish using git please help.
I tried to achieve it through azure cli but facing error - (Url validation) Webhook validation handshake failed for https://synapse.dev.azuresynapse.net/api/events. Http POST request failed with response code Unknown.
az eventgrid event-subscription create \
--source-resource-id "/subscriptions/subscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.EventGrid/topics/EventGridTopic" \
--name eventgrd \
--endpoint-type webhook \
--endpoint "https://mysite.dev.azuresynapse.net/api/events" \
--included-event-types "CustomEvent"