Configure and deploy Azure function apps
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Developing AI Cloud Solutions on Azure premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- What you configure is the app, not the function
- Five hosting options, and what separates them
- Cold start, always ready, prewarmed, and Always on
- How the code gets in: one deploy, zip, and package
- Remote build or local build, and why Python cares
- Deployment slots: staging, swapping, sticky settings
- Application settings, and what the runtime requires
- Getting secrets out of application settings
- The host, the Python worker, and the version knobs
The five hosting options, on the axes this page cares about
| Hosting option | Scale-out behavior | Function timeout (default / max, minutes) | Cold-start mitigation | Deployment technology and slots |
|---|---|---|---|---|
| Flex Consumption | Event driven and fast, per-function scaling, to 1,000 instances; scales to zero | 30 / unbounded | Always ready instances, optional, default 0 | One deploy only; slots not supported, rolling updates instead |
| Elastic Premium | Event driven across the plan; Windows to 100, Linux 20-100 by region; never below one instance | 30 / unbounded | Always ready instances plus a prewarmed buffer, default 1 prewarmed | Zip deploy; 3 slots including production |
| Dedicated (App Service) | Manual scale or autoscale, slower than elastic scale; no scale to zero | 30 / unbounded, and unbounded requires Always on | Always on setting; the host runs continuously | Zip deploy; 1 to 20 slots |
| Azure Container Apps | Event driven, 300 to 1,000 replicas depending on how the app was created | 30 / unbounded when minimum replicas is one or more | Minimum replicas of one or more keeps the host running | Container image; uses revisions rather than slots |
| Consumption (legacy) | Event driven; Windows 200, Linux 100 instances; scales to zero | 5 / 10 | Internal placeholder optimization; no always-ready or prewarmed setting | Zip deploy on Windows, external package URL on Linux; 2 slots |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Guidance for developing Azure Functions
- Azure Functions Scale and Hosting
- Deployment technologies in Azure Functions
- Azure Functions runtime versions overview
- Azure Functions Dedicated hosting
- App settings reference for Azure Functions
- Azure Functions Flex Consumption plan hosting
- Azure Functions Premium plan
- Azure Functions on Azure Container Apps
- Azure Functions Consumption plan hosting (legacy)
- Supported Languages in Azure Functions
- Event-driven Scaling in Azure Functions
- Azure Functions warmup trigger
- Run your Functions from a Package File in Azure
- Develop Azure Functions locally using Core Tools
- Deploy your Python apps to Azure Functions
- Securing Azure Functions
- Azure Functions deployment slots
- Revisions in Azure Container Apps
- Use Key Vault References as App Settings (Azure App Service)
- Python developer reference for Azure Functions
- Configure connections to remote services in Azure Functions
- Environment variables and app settings in Azure App Service
- Azure Blob storage trigger with an Event Grid source