Create a function app on Flex Consumption

Azure Portal, Hands On15 minutesFree tierSteps checked 28 October 2026By Cloud Hands On

In this task you'll create a function app on the Flex Consumption plan.

Creating a function app gives you an empty home for your functions, with its own address ending in azurewebsites.net. On Flex Consumption it costs nothing while nothing runs.

The create form also makes a storage account (where the app keeps its code and state) and can add Application Insights for logs.

Example. Ironbridge Payments creates func-ironbridge-alerts on Flex Consumption for a function that sends a message when a payment fails. It's idle most of the day and the bill is a few pence a month.

Before you start

You need: Contributor on the resource group. Time: 15 minutes.

Where to look

  1. Home
  2. Function App
  3. + Create
  4. Flex Consumption

Steps

  1. Search Function App, select + Create, choose Flex Consumption and Select.
  2. Choose rg-portal-practice and a unique name such as func-practice plus your initials and digits. Pick a region near you that offers Flex Consumption.
  3. Set Runtime stack to Node.js and pick the newest Version offered (the list may start on an older LTS). Leave Instance size at its default of 2048 MB and Zone redundancy on Disabled.If a region shows a quota error, try another one, as with App Service.
  4. There's no Storage tab: a new storage account is created for you. On Monitoring, set Enable Application Insights to No for now.The other tabs (Azure OpenAI, Networking, Durable Functions, Deployment, Authentication, Tags) can stay as they are. The Application Insights task later in the guide shows how to add it.
  5. Select Review + create, check the plan says Flex Consumption, then Create.
  6. Open the app. On Overview note the Default domain; Functions is empty for now. The next task adds a function.

Commands

# A storage account for the app, then a Flex Consumption function app
az storage account create --resource-group rg-portal-practice --name stfunc<initials><digits> \
  --sku Standard_LRS --allow-blob-public-access false
az functionapp create --resource-group rg-portal-practice --name func-practice-<initials> \
  --storage-account stfunc<initials><digits> --flexconsumption-location uksouth \
  --runtime node --runtime-version 22 --disable-app-insights true

Watch out for

Cost
Flex Consumption has a monthly free allowance of runs, so practising usually costs nothing. The storage account it creates costs a few pence a month for what it holds. Delete the group when you've finished.
Security
New function apps have HTTPS on and old publishing passwords off. Keep it that way, and give the app a managed identity if it needs to reach other services.
Common mistakes
Picking a Premium or App Service plan by accident. Choosing a region without Flex Consumption. Deleting the storage account on its own, which breaks the function app.

Clean up

  1. Resource groups
  2. rg-portal-practice
  3. Delete resource group

Keep the app for the next task. At the end of this section, delete the resource group: it removes the function app, its plan and its storage account.

Words to know

Function app
The container for one or more functions, deployed and scaled together.
Host storage
The storage account a function app needs for its code package, keys and triggers.
Instance memory
How much memory each running copy gets on Flex Consumption: 2,048 MB is the usual default.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going