Triggers, bindings and hosting plans: which one?

Azure Portal, Hands On10 minutes (looking only)Look onlySteps checked 23 October 2026By Cloud Hands On

In this task you'll choose a hosting plan for Azure Functions.

Azure Functions runs small pieces of code when something happens: a web request, a new file in storage, a message on a queue, or a timer. You don't manage servers, and on the serverless plans you pay only when the code runs.

Each function has one trigger (what starts it) and can have bindings: ready-made connections that read input or write output, such as saving a row to a table, without you writing the connection code. A function app holds one or more functions that are deployed and scaled together.

Example. SS Kaiser resizes product photos with a function. Its trigger is a new blob in the uploads container, and an output binding writes the small version to thumbnails. It runs a few hundred times a day and costs almost nothing.

Before you start

You need: Reader on the subscription. Time: 10 minutes (looking only).

Where to look

  1. Home
  2. Function App
  3. + Create

Steps

  1. Search Function App and select + Create. The first page asks you to pick a hosting option. You won't create anything in this task.
  2. Read each option. Flex Consumption: serverless, pay per run, scales to zero, free monthly allowance. Functions Premium: always-warm instances, no cold start, billed every hour. App Service: runs on an App Service plan you already pay for. Container Apps environment: runs in a Container Apps environment. Consumption (Windows): the older serverless plan.The table compares them: scale to zero, how they scale, virtual networking, preventing cold starts and the most instances. Flex Consumption is picked at the start and suits most new apps.
  3. With Flex Consumption chosen, select Select. The form that opens asks for a runtime stack (such as Node.js, Python, .NET, Java or PowerShell), its version and a region, and later tabs cover storage and monitoring.Every function app needs a storage account, which costs a little for what it holds, even when the functions are free.
  4. Close the form without selecting Create.The next task creates one.

Commands

# Which runtimes can a Flex Consumption app use in a region?
az functionapp list-flexconsumption-runtimes --location uksouth --output table

# Which regions offer Flex Consumption?
az functionapp list-flexconsumption-locations --output table

Watch out for

Cost
Looking is free. On Flex Consumption you pay per run above a monthly free allowance, plus a little for the storage account. Premium and App Service plans cost money every hour, even when nothing runs.
Security
HTTP functions can be public. Protect them with function keys, Entra ID sign-in or network rules, and use managed identities for bindings instead of connection strings.
Common mistakes
Picking Premium by accident for a hobby project. Expecting a serverless function to answer instantly after a quiet hour (cold start). Writing long-running jobs as one plain function instead of Durable Functions.

Clean up

Nothing to clean up. This task only looks at the create form.

Words to know

Trigger
What starts a function: HTTP, Timer, Blob, Queue, Service Bus, Event Grid and more. Exactly one per function.
Binding
A ready-made input or output connection to another service, so you don't write that code yourself.
Flex Consumption
The serverless plan Microsoft now recommends: pay per use, a monthly free allowance, and it can reach private networks.
Cold start
The short delay when a serverless function app starts after being idle.
Durable Functions
An extension for long-running workflows made of several functions, with saved state between steps.

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

Open this task in Azure Portal, Hands On

Keep going