Introduction

Completed

Imagine a scenario where a busy hair salon has a recurring problem: customers commonly miss their appointments. Appointments are reserved time slots, so if a customer misses an appointment, the salon loses money. To fix this problem, the salon reaches out to you, a software developer. To improve the situation, you decide to send two types of reminder text messages, one that's sent as soon as the appointment is scheduled or changed, and a text message sent each morning to each customer who has an appointment that day.

You need to create a service that can be easily scheduled, updated, and scaled. You decide to solve this problem using Azure Functions. You already know how to implement the logic to send a text message. Now you need to learn how to send the message at a specific time or when a specific event occurs. Luckily, Azure Functions supports a feature called triggers. Triggers are used to invoke your function code in Azure.

Learning objectives

In this module, you will:

  • Determine which trigger works best for your business needs.
  • Create a timer trigger to invoke a function on a consistent schedule.
  • Create an HTTP trigger to invoke a function when an HTTP request is received.
  • Create a blob trigger to invoke a function when a blob is created or updated in Azure Storage.

Supported languages

This module uses the Azure portal to create and test your function code. Functions supports in-portal development for the following languages:

  • C# Script (.csx)
  • JavaScript (Node.js v3)
  • Python
  • PowerShell

Azure Functions supports other languages such as compiled C# class libraries (.cs), Java, and TypeScript through local development tools. Other languages, like Go and Rust, are supported through the custom handlers feature. You can read more about the supported languages, tools, and features of Azure Functions in the developer guide.