Create serverless logic with Azure Functions
In this workshop, you will learn how to create, execute, monitor, and test Azure functions in the Azure portal.
Goal | Description |
---|---|
What will you learn | How to identify if an Azure function is right for your development needs, and how to create and use functions from the Azure portal. |
What you'll need | A Microsoft account |
Duration | 45 min |
Slides | Powerpoint |
Video coming soon...
This workshop will use the Azure sandbox environment within Microsoft Learn. In order to access the sandbox environment, you'll need to create a free Microsoft account and sign in when prompted.
Say you're working on an IoT project where you want to figure out how many people sit at each table in your school's cafeteria. You want to use infrared sensors at each table that provide you with data from all of the locations, and you want to develop a reusable service that can process the data from all of the different sources. With serverless computing, you can use a cloud provider, like Azure, to manage the infrastructure of your project. Azure Functions is a key component of the serverless computing offering from Azure that enables you to run pieces of code, or functions, written in the programming language of your choice, in the cloud.
In this section, you will learn all about serverless computing and Azure Functions, and understand the benefits and drawbacks of a serverless compute solution. With this knowledge, you can decide if serverless computing is right for your project.
Once you have decided that a serverless solution would best fit your needs, the workshop will walk you through how to create a function app in the Azure portal. You'll be able to choose if you want to code in JavaScript or PowerShell.
Now that you have created a function app, you'll learn how to build, configure, and execute a function. In this section, we also cover how to test your new Azure function.
Finally, we'll add logic to the function app. For the purposes of this workshop, we will work with an example that checks for safe temperature levels.
- Execute an Azure Function with triggers
- Chain Azure Functions together using input and output bindings
- Develop, test, and publish Azure Functions by using Azure Functions Core Tools
Now that you know how to create Azure functions from the Azure portal, try creating one using your Azure for Students subscription and the Azure Functions extension in Visual Studio Code!
Be sure to give feedback about this workshop!