Choosing the Right Azure Compute Service: Decision Tree for VMs, App Service, Functions, Containers and AKS
The Control Versus Effort Scale
text
More control, more work <-----------------------------------------> Less control, less work
Virtual Machines AKS Container Apps / ACI App Service Functions / Logic Apps
Compute Services Compared
| Service | Best for | Watch out for |
|---|---|---|
| Virtual Machines | Lift and shift, custom OS or software, licensing, GPU, legacy | You patch and manage the OS |
| VM Scale Sets | Many identical VMs with autoscale | Image and update management |
| App Service | Web apps and APIs with built-in scale, slots, TLS, auth | Limited OS access, plan limits |
| Azure Functions | Event-driven short tasks, glue code, pay per execution | Cold starts, timeout and runtime limits by plan |
| Container Apps | Containers and microservices without managing Kubernetes, KEDA scaling, Dapr | Less low-level control than AKS |
| Container Instances (ACI) | Simple, short-lived containers and burst jobs | No built-in orchestration |
| AKS | Complex microservices, Kubernetes ecosystem, portability, fine control | Kubernetes skills and operations |
| Azure Batch | Large parallel and HPC jobs | Job design |
| Service Fabric | Existing Service Fabric stateful apps | New projects prefer AKS or Container Apps |
| Azure Virtual Desktop | Remote desktops and apps | Image and profile design |
Decision Questions
- Can I use a SaaS product? Then do not build
- Is it a web app or API with standard runtimes? Choose App Service
- Is it event-driven short code? Choose Functions
- Is it containerized and needs simple scaling? Choose Container Apps
- Do I need Kubernetes APIs, custom controllers or many teams on a platform? Choose AKS
- Do I need OS control or legacy software? Choose VMs
- Is it a big parallel batch? Choose Batch
Scaling Models
| Model | Meaning | Services |
|---|---|---|
| Scale up | Bigger instance | VMs, App Service plan, SQL |
| Scale out | More instances | Scale sets, App Service, AKS, Container Apps |
| Scale to zero | No instances when idle | Functions, Container Apps |
App Service Plans (Design Points)
- Several apps can share a plan to save money, but they share CPU and memory
- Higher tiers add slots, autoscale, VNet integration, zone redundancy
- App Service Environment gives a fully isolated, single-tenant environment inside your VNet for strict needs
Scenario Table
| Scenario | Choice |
|---|---|
| Corporate website in .NET, small team | App Service |
| Image thumbnail on blob upload | Functions |
| 20 microservices, platform team, Kubernetes skills | AKS |
| Few container services, minimal ops | Container Apps |
| Third-party Windows app with a license server | VM |
| Nightly 1,000-core simulation | Batch with Spot nodes |
| Remote developer desktops | Azure Virtual Desktop |
Practice
- Choose compute for five scenarios and give one reason each
- Explain when AKS is overkill
- List three signals that point to VMs
Conclusion
Choose the most managed service that meets the requirement: Functions or App Service first, then Container Apps, AKS and VMs only when control is truly needed.
Quick Summary: scale of control; services; questions; scaling; App Service; scenarios.

