Hosting Plans in Azure Functions
Als je een Function App maakt in Azure, moet je een hostingplan kiezen. Microsoft Azure biedt 6 opties:
- Consumption Plan
- Premium Plan
- Flex Consumption Plan
- App Service Plan
- Kubernetes
- ASE

Je hostingplan bepaalt hoe je app zich gedraagt:
- Hoe de Function App schaalt
- Welke compute resources beschikbaar zijn
- Welke extra features je kunt gebruiken (zoals VNet integratie)
Consumption Plan
Schaalt automatisch op basis van binnenkomende events. Je betaalt alleen als je function draait. Geen gebruik = geen kosten.
Premium Plan
Net als Consumption, maar je stelt vooraf een aantal 'pre-warmed' instances in die altijd klaarstaan. Je betaalt voor die instances – ook als je function niks doet – plus extra als Azure opschaalt.
Flex Consumption Plan
Nieuwe optie met flexibeler schaling en meer controle over je compute settings. Je betaalt per gebruik, met optioneel always-ready instances. Je krijgt ook maandelijks 250.000 gratis executions en 100.000 GB-s resourceverbruik per subscription.
App Service Plan
Laat je functions draaien zoals je web apps. Gebruik je al App Service? Dan kun je zonder extra kosten je functions daar laten meedraaien. Handig voor langdurige processen zonder Durable Functions.
Kubernetes
Biedt volledige isolatie op een Kubernetes cluster. Goed als je in multi-cloud of met on-prem integraties werkt.
App Service Environment (ASE)
Een aparte, geïsoleerde omgeving voor grootschalige en veilige apps. Denk aan high-end gebruiksscenario’s.
Hoe kies je het juiste Hosting Plan?
Begin met Consumption…
Zoals bij veel Azure services, start je best met het Consumption Plan. Je betaalt alleen bij gebruik, en het schaalt automatisch mee. Voor de meeste apps is dit prima.
Gebruik Premium als…
Je workloads iets meer vragen. Cold starts zijn een nadeel bij het Consumption Plan – vooral als je function na inactiviteit even moet opstarten. Voor APIs die constant draaien of lage latency nodig hebben, is Premium beter. Je functies reageren dan direct.
- Premium biedt ook VNet integratie en private endpoints.
- Voor veel kleine executions is Premium soms goedkoper dan Consumption.
Kies App Service Plan als…
Je voorspelbare kosten wil, of al App Service gebruikt. Je kunt alles combineren op één plan.
Kies Kubernetes bij multi-cloud
Als je workloads draait over meerdere clouds of je zit met on-prem integraties, dan is Kubernetes het meest flexibel.
Overzicht:
Hosting Plan |
Wanneer gebruiken |
Consumption (Begin hier!) |
- Volledig serverless
- Je betaalt alleen bij gebruik
- Automatisch schalen
|
Premium Plan |
- Lage latency nodig
- Hoge schaalbaarheid met networking en containers
- Lange functies
- Veel kleine executions (goedkoper dan Consumption)
|
App Service Plan |
- Vaste kosten willen
- Workload isolatie
- Je gebruikt al App Service
|
Kubernetes |
- Multi-cloud of on-prem integratie
- Maximale isolatie
|
Azure Functions Pricing: Wat kost het?
Je vraagt je waarschijnlijk af: wat kost Azure Functions me?
Kort antwoord: hangt af van hoe je het gebruikt.
Er zijn drie pricing modellen:
- Consumption
- Premium
- Dedicated (App Service) Plan
1. Consumption Plan
Verreweg het populairste. Pay-as-you-go model op basis van verbruik.
- Gratis tot 1 miljoen requests en 400.000 GB-s per maand
- Daarboven betaal je centen per run
Bij lange of zeer frequente workloads kan dit prijzig worden.
Voorbeeld
Stel je function draait 250ms en gebruikt 256MB geheugen, dan kost dat: 0.000016 × 256 × 0.25 = $0.001024 per execution.
Als die function 2 miljoen keer draait in een maand, dan is je execution cost:
2 miljoen × $0.20 per miljoen = $400 aan executions alleen.