azureazure-logic-appsazure-eventgrid

Event Grid doesn't trigger using Logic Apps


I have to create a Logic App using the Event Grid, so whenever a new file is created/uploaded in our General Purpose V2 Storage Account it should post a message in slack. This is how it currently looks like.

enter image description here

However, once one file is created/uploaded nothing shows up in slack. There aren't any runs in the "Runs history" and trying to press the button to "Run Trigger" causes the this error.

enter image description here

I also tried to create the Grid Topic and use the Event Grid Subscription for it, yet I got the same error.

Does anyone knows how to solve this problem?


Solution

  • There is no problem with your trigger from your picture. There aren't any runs in the Runs history, this means your trigger is not triggered.

    Note:When a resource event occurs this trigger could only be triggered by the blob file modification including creating blob and renaming. If your action is the container modification, it won't trigger it. And you could check the See trigger history.

    And about your trigger error Failed to start a logic app run, this is because you run the trigger in the portal, the expression @triggerBody() will be null it won't trigger the flow.

    Then I test with different storage account and different logic app ,all of them could be triggered.

    enter image description here

    Hope this could help you, if you still have other questions,please let me know.