Moving an API Endpoint to an Azure Function

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, students will perform a API code migration. To begin, you will deploy an Azure Functions instance before deploying and configuring the Azure Function App. You will also make the necessary API code modifications before copying the code into the new Azure Function App.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Access the “On-Premises” API Code

Using the Azure Cloud Shell, clone the Git repository, and access the pre-configured API code that has been made Azure Functions-compatible.

Deploy and Configure Azure Functions

Using the Azure portal, deploy a new Azure Functions instance where the new code will be migrated to. Inside of the newly created Azure Functions instance, you will create an Azure Function App.

Migrate the API Code to the Azure Function App

Using copy/paste, migrate the prepared API code to the newly deployed Azure function.

Additional Resources

For this lab, as a systems engineer for Cloudy Solutions, Inc., you are tasked with the basic migration of your on-premises API code to an Azure function. For your specific migration, a virtual machine is not needed.

You will log in to the Azure portal and deploy an Azure Functions service, create an Azure Function App inside of the service, and then configure some environment variables of that function app. This is the first stage of the lab.

Next, you will access Azure Cloud Shell, download the API code by cloning the Git repository, and access the modified code that has been made Azure Functions-compatible. This is stage two.

In the final stage, you will return to Cloud Shell, where your prepared API code awaits, and migrate your code to the new cloud service. This will involve moving back and forth between Cloud Shell and your new Azure function.

The goal of this lab to get a feel for as many components of an API migration as possible.

Resource Links

Repository Link:

Repository Site URL:

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?