This guided project consists of the following exercises:
- Create the Function App
- Deploy an HTTP-trigger function
- Test endpoint and review logs
In this exercise, you create a resource group and deploy a Function App using the serverless Flex Consumption plan. When you're done, you have a running Function App ready to host your first function.
This exercise includes the following tasks:
- Prepare the environment
- Configure the Function App
- Verify the deployment
Outcome: A running Function App that uses the serverless consumption plan.
[!TIP] Pause after each major action and confirm the page status before moving on. This habit prevents compounding mistakes.
Task 1: Prepare the environment
Set up your Azure environment before you begin. You create a resource group to organize all the resources for this project together.
[!WARNING] This project creates Azure resources that may incur charges. Complete the clean-up unit when you're done to avoid unintended expenses.
- Sign in to the Azure portal with an account that has permissions to create Function App resources.
- In the portal search bar, search for Resource groups and select Resource groups.
- Select + Create. Name the resource group rg-gp-functions-endpoint, choose your preferred region, and select Review + create then Create.
Task 2: Configure the Function App
Set up the Function App with serverless hosting. The Flex Consumption plan ensures you pay only for the execution time of your functions, making it cost-effective for occasional workloads.
- In the portal search bar, search for Function App and select Function App.
- Select Create.
- Select Flex Consumption as the hosting option and select Select.
- On the Basics tab, select rg-gp-functions-endpoint as the resource group.
- For Function App name, enter a globally unique name (for example, func-gp-endpoint- followed by your initials and a number).
- For Secure unique default host name, leave the default (On).
- For Region, keep the default or choose your preferred region.
- For Runtime stack, select Node.js.
- For Version, keep the latest available LTS option.
- For Instance size, leave the default (2048 MB).
- Select Review + create and then select Create.
[!NOTE] Validation step: Verify you selected all required settings before deployment: resource group, runtime stack (Node.js), region, and Flex Consumption hosting plan.
[!NOTE] Each exercise includes validation steps like this one. Track your results as you go—you'll review them all in the validation unit at the end of this module.
Task 3: Verify the deployment
Confirm that your Function App deployed successfully and is running.
- When deployment completes, select Go to resource.
- Confirm the Function App Overview page shows a Running status.
[!NOTE] Validation step: Confirm the Function App Overview page shows Running status and note the resource URL.