Azure Functions: which hosting plan?
Verdict: New serverless apps go on Flex Consumption. The legacy Consumption plan is Windows-only with a hard 10-minute cap. Every other plan can run unbounded; Dedicated needs Always On for it. Premium exists for prewarmed workers and Hybrid Connections.
| Criterion | Flex Consumption | Consumption (legacy) | Premium | Dedicated (App Service plan) |
|---|---|---|---|---|
| OS | Linux only | Windows only (Linux retired) | Windows or Linux | Whatever the plan runs |
| Timeout | Unbounded maximum | Hard 10-minute maximum | Unbounded maximum | Unbounded - with functionTimeout -1 and Always On |
| Scale | Event-driven to 1,000 instances per app | Serverless scale | Prewarmed workers | Plan instance count |
| VNet integration | Yes | No | Yes | Yes |
| Cold start | Optional always-ready instances | Cold starts apply | Prewarmed | Always On keeps host warm |
| Apps per plan | One | Up to 100 | Up to 100 | Plan capacity |
Rules
- Choose Flex Consumption for new serverless apps: VNet integration, scale to 1,000 instances, always-ready instances, pay-as-you-go on Linux.
- On the Dedicated plan an unbounded run needs functionTimeout set to -1 in host.json and Always On enabled, or the host idles out.
- Recognise the legacy Consumption plan by its signature: Windows-only, hard 10-minute cap, kept for apps with a Windows dependency such as the full .NET Framework.
- Do NOT consolidate function apps onto one Flex Consumption plan: it allows exactly one app per plan; the 100-app figure belongs to Premium and legacy Consumption.
Traps
- Unbounded execution is not unique to Dedicated: Flex Consumption and Premium allow it too. Only legacy Consumption caps at 10 minutes, and HTTP-triggered functions still have 230 seconds to respond.
- Candidates route VNet-integrated serverless to the legacy Consumption plan; it has no VNet integration at all.