Are you remembering to keep up with your New Year’s Resolutions? Using C#, Azure Functions and Twilio we’ll build a service that delivers daily SMS reminders to help keep up with those new goals.

Recipe

Here’s a list of the things we’ll use in the creation of our reminder service:

Set up your accounts and install any of the software you don’t have before moving on.

Structuring the Reminder Service

Azure Functions make it easy to quickly create the type of service we’re building. It’s “serverless” which means we don’t have to worry about web server architecture. Instead, we can just focus on the small bits of code or “functions” that make our service work.

We’ll create one function that handles receiving SMS messages from Twilio. When it receives a request from Twilio it will create a record in an Azure Table if the text message contains “subscribe”. A second function will fire once a day to send an SMS reminder to each number in the Azure table.

Simple enough? Let’s get started.

Handling Subscription Requests

Create a new Project in Visual Studio 2015 and search the installed templates for “Azure Functions”:



Name your project DailySmsReminders and click OK .