Why are Communication Services events not being displayed on Azure Event Grid Viewer?

Kevin C 0 Reputation points
2023-04-25T22:24:12.3+00:00

I recently created an Azure Communication Service to handle SMS messaging with an Azure hosted app service. I want to be able to see delivery reports and handle SMS response messages. I found the following tutorial which I implemented: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/sms/handle-sms-events When I browse to the Event Grid Viewer I created no events are ever published. Using my custom application, when I send SMS messages I receive them but they never trigger an event that displays on the Event Grid Viewer. My Event Subscription filter is set to both "SMS Received" and "SMS Delivery Report Received" Subscription Validation Events do display on the Event Grid Viewer so I know it's connected. Any ideas on why Communication Service Events would not show?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
684 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
319 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,366 Reputation points
    2023-04-26T18:42:29.24+00:00

    @Kevin C

    Thanks for reaching here! Suggest you follow below steps for troubleshooting:

    1. Check that the webhook URL is in the proper format https://{{site-name}}.azurewebsites.net/api/updates where {{site-name}} is the name of the Web App Service.
    2. Refreshing the website (sometimes there's issues on the client side with teh Event Grid Viewer, since it is a sample)
    3. Redeploying the Event Grid Viewer.
    4. Another thing: When sending SMS, make sure that delivery reports are set on by setting the delivery report flag to true.

    see here: Quickstart - Send an SMS message - Azure Communication Services | Microsoft Learn

    Also could you elaborate on this setup,

    "when I send SMS messages I receive them but they never trigger an event that displays on the Event Grid Viewer."

    Where are you sending messages to and where are you sending messages from?

    The Event Grid viewer will only display messages sent to the ACS acquired phone number. So, the test should be from any phone or cell phone send an SMS to the acquired ACS number and that message will be displayed on the Event Grid Viewer.

    Also, The Event Grid viewer webpage should be open for the customer to be able to see the event.

    Let us know.