Answered by:
Listening for EventGrid events via socket?

Question
-
Is there a means to listen to EventGrid events via a socket or similar style connection? As a simple example, can I listen for events in a custom console application (that doesn't self host a web endpoint)? My current impression is that I would need to put a webhook endpoint in between and notify the console app via socket connection on my own. How can any user interface respond to EventGrid events with writing a custom webhook adapter?
- Moved by Rita HanMicrosoft contingent staff Monday, November 13, 2017 7:18 AM It is not belongs to a exiting forum
Friday, November 10, 2017 9:08 PM
Answers
-
Something here may help.
https://azure.microsoft.com/en-us/services/event-grid/
or also ask here in Azure forums
https://azure.microsoft.com/en-us/support/forums/
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Monday, November 13, 2017 3:29 PM
- Marked as answer by Just Karl Monday, November 20, 2017 3:22 PM
Monday, November 13, 2017 1:49 PM -
From an Event Grid Perspective, an event handler is the place where the event is sent. Currently the type of Event Handlers available are :
- Azure Functions
- Logic Apps
- Azure Automation
- WebHooks
- Microsoft Flow
So depending on what your end goal is there are 2 possible ways to go about this
- As you suggest going the webhook route
- Using something like Logic Apps/Microsoft Flow with their rich IFTTT format, Azure Functions for some tasks or Azure Automation for runbooks which are more complex
From the last part of your question my assumption is that in your scenario, you have an app and you would like the UX to change based on an Event being triggered, let me know if thats not the case.
For that scenario what you could do is use the Azure Relay in conjunction with EventGrid. Luckily there is a sample available that walks through just this scenario https://github.com/Azure-Samples/event-grid-relay-listener in this sample, an Azure Relay WCF Namespace is used to connect an Event Grid Subscription and display it in a Console application.
If you run into an issue using this, post back here and we can help figure out the solution
- Proposed as answer by Aman ArnejaMicrosoft employee Thursday, November 23, 2017 8:47 PM
- Marked as answer by Naomi N Thursday, November 23, 2017 10:23 PM
Thursday, November 23, 2017 8:46 PM
All replies
-
Something here may help.
https://azure.microsoft.com/en-us/services/event-grid/
or also ask here in Azure forums
https://azure.microsoft.com/en-us/support/forums/
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Monday, November 13, 2017 3:29 PM
- Marked as answer by Just Karl Monday, November 20, 2017 3:22 PM
Monday, November 13, 2017 1:49 PM -
From an Event Grid Perspective, an event handler is the place where the event is sent. Currently the type of Event Handlers available are :
- Azure Functions
- Logic Apps
- Azure Automation
- WebHooks
- Microsoft Flow
So depending on what your end goal is there are 2 possible ways to go about this
- As you suggest going the webhook route
- Using something like Logic Apps/Microsoft Flow with their rich IFTTT format, Azure Functions for some tasks or Azure Automation for runbooks which are more complex
From the last part of your question my assumption is that in your scenario, you have an app and you would like the UX to change based on an Event being triggered, let me know if thats not the case.
For that scenario what you could do is use the Azure Relay in conjunction with EventGrid. Luckily there is a sample available that walks through just this scenario https://github.com/Azure-Samples/event-grid-relay-listener in this sample, an Azure Relay WCF Namespace is used to connect an Event Grid Subscription and display it in a Console application.
If you run into an issue using this, post back here and we can help figure out the solution
- Proposed as answer by Aman ArnejaMicrosoft employee Thursday, November 23, 2017 8:47 PM
- Marked as answer by Naomi N Thursday, November 23, 2017 10:23 PM
Thursday, November 23, 2017 8:46 PM -
OffTopicOrIrrelevantPosts
This is "where is" forum for direction on where best to ask questions. Answers are not typically given here, the goal here is to give users a pointer on where to ask for help.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Edited by Dave PatrickMVP Thursday, November 23, 2017 9:13 PM
Thursday, November 23, 2017 9:05 PM