In this lab, you will simulate the code modifications necessary to point a web frontend to an API in Azure Functions. You will modify the storage account settings for static hosting, create the API inside of Azure Functions, modify the frontend code, rebuild the code, and upload the code to the storage account using the Azure CLI.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create the API for the Necessary Code Modification
Create an Azure function using the code provided in the Git repository. This will allow the API URL to be generated, which is needed for the frontend code modification.
- Prepare the Frontend Code for Azure Storage
Using the Azure Cloud Shell, clone the Git repository, modify the code for Azure Functions, and rebuild the frontend code.
- Enable and Configure the Static Website Feature in Azure Storage
Using the Azure portal, enable the static website feature in Azure storage. Then, configure the endpoint to point to the correct file in the code base.
- Migrate the Code to Azure Storage
Using the Azure CLI, upload the code into the Azure storage space.