Event Grid loosing its subscription

Jon 1 Reputation point
2021-10-14T14:08:08.96+00:00

I have seen on quite a few occasions that my event grid that is being subscribed to by a logic app looses the subscription and therefore my logic app does not function. The logic app still shows the old subscription but it is not present in the event grid. I have to create a new subscription name in the logic app and save it for it to create a new one.

Can anyone advise what might be causing the subscription to be removed, could it be another logic app accidentally configured to publish to the same topic or something like that?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,770 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
307 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 67,691 Reputation points
    2021-10-21T03:16:43.983+00:00

    @Jon The only possible scenario for which you have observed the issue, I could think about would be when you are using HTTP Trigger logic app workflow.
    When your logic app workflow doesn't handle the endpoint validation with HTTP trigger. When you create the event grid subscription then to prove endpoint ownership the endpoint needs to echo back the validation code in the validationResponse property as mentioned in the endpoint validation document.
    Once you create the event grid subscription it waits for a few minutes for the validation response and till that time you will see an event grid subscription under your topics.
    In case if you are not able to validate the ownership of the endpoint within the time limit the event grid subscription will automatically be deleted as you were not able to validate the ownership of the endpoint.

    The above could be one of the reasons but if someone is still facing the issue then please share the details as requested in my comment to assist you further.

    0 comments No comments

  2. Jon 1 Reputation point
    2021-10-22T12:17:50.94+00:00

    Its an event grid trigger. The subscription works and events flow and are picked up but then for some reason the subscription is then removed. Could it be linked to the clone operation on the publishing logic app resulting in 2 publishers to the 1 topic?

    0 comments No comments