Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Compare

Container Instances vs Container Apps vs App Service

30-second answer

Use Container Instances for a single container group that runs on demand with fixed CPU and memory, like a nightly job. Use Container Apps for container APIs and workers that must scale on traffic or events, down to zero. Use App Service for web apps that need deployment slots, custom domains with TLS and backups on a plan you scale yourself.

Simulate it »

Side by side

↔ Swipe the table to see every column.

Container InstancesContainer AppsApp Service
What you runA container group (one or more containers)Container apps in a shared environmentWeb apps from code or a container on an App Service plan
SizingCPU and memory fixed at creationCPU and memory pair per replicaThe plan’s tier and instance size
ScalingNone built in; run more groupsScale rules (HTTP, TCP, events) between min and max replicasManual scale out; autoscale rules from Standard
Scale to zeroStops when the job ends (OnFailure or Never)Yes, with min replicas 0No, the plan always runs
ReleasesRedeploy the groupRevisions and traffic splittingDeployment slots and swap
BillingPer second of vCPU and memoryPer vCPU-second and GiB-second (Consumption)Per plan instance per hour

Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.

Which one should I pick?

  • Container Instances

    Pick it when a short job or a simple container that runs and stops

  • Container Apps

    Pick it when traffic goes up and down and you want scale to zero

  • App Service

    Pick it when a web app needs slots, custom domains, TLS and backups

Simulate it

3D Run apps on Azure: containers and App Service, the administrator’s view Run a job in ACI, then flood it. Step on to see Container Apps scale.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

A registry feeds Container Instances

Azure Container Registry stores your private images. Container Instances runs them as a container group with the CPU and memory you set and a restart policy: Always, OnFailure or Never. It doesn’t scale itself, and only Premium registries can geo-replicate.

Read this tour as text
  1. A registry feeds Container Instances. Azure Container Registry stores your private images. Container Instances runs them as a container group with the CPU and memory you set and a restart policy: Always, OnFailure or Never. It doesn’t scale itself, and only Premium registries can geo-replicate.
  2. Container Apps scale on HTTP traffic. Each replica gets an allowed CPU and memory pair (0.5 vCPU with 1 Gi here). An HTTP scale rule adds a replica per 50 concurrent requests, between min and max replicas. With min 0, a quiet app scales to zero.
  3. The plan is the VMs. An App Service plan is a set of VMs. Every app on the plan runs on every instance. Scale out adds instances (Basic: up to 3). Scale up moves to a bigger or richer tier, which also decides the features you get.
  4. Autoscale rules (Standard and up). On Standard or Premium, a rules-based autoscale setting watches a metric such as CPU Percentage and adds or removes instances between a minimum and maximum, with a cool-down so it doesn’t flap.
  5. Prove you own the domain. To map www.contoso-learn.com, App Service needs a TXT record asuid.www holding the app’s verification ID, plus a CNAME from www to the app (an A record for the root domain). Free tier can’t do custom domains.
  6. Certificate, HTTPS Only, TLS 1.2. A free App Service managed certificate (Basic and up, no wildcards, not exportable) is bound with SNI SSL. HTTPS Only redirects HTTP, and the minimum TLS version (1.2 by default) turns away old clients.
  7. Back up to your own storage. Automatic backups run hourly with no setup. Custom backups write files, configuration and linked databases (up to 10 GB) to a blob container you own, on demand or on a schedule with retention. Basic tier and up.
  8. Outbound and inbound are different switches. VNet integration is outbound: the app reaches private resources through a delegated subnet. Inbound is controlled by access restrictions (allow and deny rules by priority) or a private endpoint.
  9. Staging slot, warm-up, swap. A deployment slot (Standard: 5, Premium v3: 20) is a live copy of the app. Deploy to staging, then swap: App Service warms staging up first, so users never hit a cold start. Slot settings stay with their slot.

Questions people ask

Can I change the CPU of a running container group?

No. CPU, memory and the restart policy are fixed; you delete and recreate the group with new values.

Do Container Apps need a registry?

They pull images from any registry. With Azure Container Registry, give the app a managed identity with AcrPull instead of an admin password.

Learn each one properly

More comparisons

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.