Search This Blog

Showing posts with label opt-in type. Show all posts
Showing posts with label opt-in type. Show all posts

Jul 14, 2023

Enabling SMS Communication Using Azure Communication Service

Recently adding SMS alerting function to a monitoring program that my son wrote. Below are high level steps for North America developers.


  1. Assuming you already have App Service Plan and App Service in Azure
  2. Request SMS service
    1. Search "Communication Service" -> "create" to create a communication service instance
    2. Once created, under "Phone numbers", request a phone number. 
      1. Only toll free number can send SMS messages
      2. Cost (as of July 2023): $2/month + per message cost (neglectable)
      3. You can also request short code ID or aliphatic ID for extra cost
  3. Submit request for SMS sending
    1. In same page of the communication service instance, under "Regulatory Documents", submit a request. 
    2. "opt-in type" refers to how "customers" (as the regulatory is designed around marketing SMS messages) opt-in/opt-out. It could be SMS, web portal, paper form, etc. You have to provide evidence(screenshot) that there is such opt-in option available to customers
    3. It could take weeks to get approval
    4. Your outbound messages are blocked until your request is approved in Canada. In the States, you can send limited number of messages before approval
  4. Sample code to send SMS message