Why does Azure SMS say sent and give code of 202 when it doesn't send

W H 0 Reputation points
2024-01-18T16:06:12+00:00

I've sent myself several SMS messages through my Azure account to test the process. I always get a "success" return and a 202 code back. None of the texts are actually making it to my phone, which indicates to me that the process is not working. Why does it give a success message if it is not really sending them?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
686 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,191 Reputation points
    2024-01-19T00:00:39.2066667+00:00

    Hello @W H The 202 response code you’re receiving from Azure indicates that your SMS message has been successfully queued for delivery, not that it has been delivered. This is a common point of confusion. Here are two ways to troubleshoot this issue:

    1. You can subscribe to delivery report events to capture SMS delivery details. Once the events are configured, inspect the “deliveryStatus” field of your delivery report to verify delivery success or failure
    2. Some users have reported similar issues with specific cell providers. If possible, you might want to test with a different cell provider to see if that resolves the issue. Remember, a 202 response code means the message has been accepted for delivery, but it doesn’t guarantee that the message will be delivered successfully. I hope this helps. Best, Grace