Choosing the Right Azure Compute Service: Decision Tree for VMs, App Service, Functions, Containers and AKS

Microsoft Azure Architect Design AZ 301 55 min min read Updated: Nov 17, 2026 Intermediate
Choosing the Right Azure Compute Service: Decision Tree for VMs, App Service, Functions, Containers and AKS
Intermediate Topic 1 of 3

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

ServiceBest forWatch out for
Virtual MachinesLift and shift, custom OS or software, licensing, GPU, legacyYou patch and manage the OS
VM Scale SetsMany identical VMs with autoscaleImage and update management
App ServiceWeb apps and APIs with built-in scale, slots, TLS, authLimited OS access, plan limits
Azure FunctionsEvent-driven short tasks, glue code, pay per executionCold starts, timeout and runtime limits by plan
Container AppsContainers and microservices without managing Kubernetes, KEDA scaling, DaprLess low-level control than AKS
Container Instances (ACI)Simple, short-lived containers and burst jobsNo built-in orchestration
AKSComplex microservices, Kubernetes ecosystem, portability, fine controlKubernetes skills and operations
Azure BatchLarge parallel and HPC jobsJob design
Service FabricExisting Service Fabric stateful appsNew projects prefer AKS or Container Apps
Azure Virtual DesktopRemote desktops and appsImage and profile design

Decision Questions

  1. Can I use a SaaS product? Then do not build
  2. Is it a web app or API with standard runtimes? Choose App Service
  3. Is it event-driven short code? Choose Functions
  4. Is it containerized and needs simple scaling? Choose Container Apps
  5. Do I need Kubernetes APIs, custom controllers or many teams on a platform? Choose AKS
  6. Do I need OS control or legacy software? Choose VMs
  7. Is it a big parallel batch? Choose Batch

Scaling Models

ModelMeaningServices
Scale upBigger instanceVMs, App Service plan, SQL
Scale outMore instancesScale sets, App Service, AKS, Container Apps
Scale to zeroNo instances when idleFunctions, 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

ScenarioChoice
Corporate website in .NET, small teamApp Service
Image thumbnail on blob uploadFunctions
20 microservices, platform team, Kubernetes skillsAKS
Few container services, minimal opsContainer Apps
Third-party Windows app with a license serverVM
Nightly 1,000-core simulationBatch with Spot nodes
Remote developer desktopsAzure Virtual Desktop

Practice

  1. Choose compute for five scenarios and give one reason each
  2. Explain when AKS is overkill
  3. 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.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators