- Azure Serverless Computing Cookbook
- Praveen Kumar Sreeram
- 214字
- 2021-06-10 18:56:01
Getting ready
In order to use the Twilio SMS output (objsmsmessage) binding, we need to do the following:
- Create a trial Twilio account at https://www.twilio.com/try-twilio.
- After successful creation of the account, grab the ACCOUNT SID and AUTH TOKEN from the Twilio Dashboard, as shown in the following screenshot. We will create two App settings in the Application settings blade of the function app for both of these settings:
- In order to start sending messages, you need to create an active number within Twilio, which will be used as the From number that you will use for sending the SMS. You can create and manage numbers in the Phone Numbers Dashboard. Navigate to https://www.twilio.com/console/phone-numbers/incoming and click on the Get Started button, as shown in the following screenshot:
- On the Get Started with Phone Numbers page, click on Get your first Twilio phone number, as shown in the following screenshot:
- Once you get your number, it will be listed as follows:
- The final step is to verify a number to which you would like to send an SMS. You can have only one number in your trial account. You can verify a number on Twilio's Verified page, available at https://www.twilio.com/console/phone-numbers/verified. The following is a screenshot of the list of verified numbers: