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. You also confirm monitoring is connected so invocation telemetry is available in later exercises.
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 with monitoring configured.
[!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).
- Open the Monitoring tab.
- Confirm Application Insights is enabled. Use the default monitoring settings unless your environment requires a specific workspace.
- Note the Application Insights resource and/or Log Analytics workspace name shown in this step. You use this information during cleanup.
- 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, Flex Consumption hosting plan, and monitoring enabled.
[!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.
- In the left-hand menu, scroll down to the Settings section and select Application Insights.
- Confirm the Application Insights status shows Enabled and a connected resource name is displayed.
[!NOTE] Validation step: Confirm the Function App Overview page shows Running status and monitoring is connected.