question

Jon-2558 avatar image
0 Votes"
Jon-2558 asked Jon-2558 answered

Event Grid loosing its subscription

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-appsazure-event-grid
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Jon-2558 Can you please confirm what type of logic app trigger (Http Trigger or Event Grid trigger) you are using along with your event grid topic details whether it is custom topic or system topics (storage, service bus, IoT, etc.)

0 Votes 0 ·
MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@Jon-2558 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jon-2558 avatar image
0 Votes"
Jon-2558 answered

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?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.