Hello John,
As Deepthi mentioned, yes you can connect to EventGrid event and process.
If you are looking into connecting it with an Azure Function start by this:
- Create Azure Function ready to receive EventGrid events - link
- From the Communication resource page, click on Events then "+ Event Subscription"
- You will need to fill in the required information as shared by Deepthi in the above comment, also add Azure Function as the endpoint type and choose the newly created trigger. Make sure to select the necessary Event Types that you want to get notified about.
- Now use your resource to send sms or chat message for example.
5.Finally you should see events in your Azure Function Monitor [https://learn.microsoft.com/en-us/azure/event-grid/custom-event-to-function#verify-that-function-received-the-event
Checkout here showing some code to process received events over webhook event handler from EventGrid docs.
[https://learn.microsoft.com/en-us/azure/event-grid/receive-events
Also link showing how to use webhook as an event handler to view events on EventGridViewer.
[https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/sms/handle-sms-events
Hope this helps, please let us know if you have any other questions.
Thanks,
Abdel