You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Azure Functions offers three hosting plans, each with different scaling behaviour, performance characteristics, and pricing models. Choosing the right plan is critical — it affects cold start latency, maximum execution time, networking capabilities, and cost. This lesson covers the Consumption, Premium, and Dedicated (App Service) plans in detail.
| Feature | Consumption | Premium (Elastic Premium) | Dedicated (App Service) |
|---|---|---|---|
| Scaling | Event-driven, 0 to 200 instances | Event-driven, 1+ pre-warmed instances | Manual/autoscale rules |
| Scale to zero | Yes | No (minimum 1 instance) | No |
| Cold start | Yes (1–10 seconds) | Minimal (pre-warmed instances) | None (always running) |
| Max execution | 10 minutes | Unlimited | Unlimited |
| Max instances | 200 | 100 | 10–30 (varies by SKU) |
| VNet integration | No | Yes | Yes |
| Pricing | Per execution + GB-s | Per pre-warmed instance + burst | App Service plan cost |
| SLA | 99.95% | 99.95% | 99.95% |
The Consumption plan is the default and most cost-effective option for intermittent workloads. Azure manages all infrastructure and scaling decisions.
You pay for two things:
Example: 5 million executions/month, 128 MB memory, 500ms average duration
Execution cost: (5M - 1M free) × $0.20/M = $0.80
Resource cost: 5M × 0.125 GB × 0.5s = 312,500 GB-s
(312,500 - 400,000 free) = $0.00 (within free grant)
Total: $0.80/month
The Premium plan eliminates cold starts while retaining event-driven scaling. It is designed for production workloads that need consistent performance and enterprise networking.
Pre-warmed instances: ████████ (always running — no cold start)
Burst instances: ░░░░░░░░ (added on demand — may have slight delay)
| SKU | vCPUs | Memory | Price (approx.) |
|---|---|---|---|
| EP1 | 1 | 3.5 GB | ~$220/month |
| EP2 | 2 | 7 GB | ~$440/month |
| EP3 | 4 | 14 GB | ~$880/month |
You pay for:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.