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 Instances | Container Apps | App Service | |
|---|---|---|---|
| What you run | A container group (one or more containers) | Container apps in a shared environment | Web apps from code or a container on an App Service plan |
| Sizing | CPU and memory fixed at creation | CPU and memory pair per replica | The plan’s tier and instance size |
| Scaling | None built in; run more groups | Scale rules (HTTP, TCP, events) between min and max replicas | Manual scale out; autoscale rules from Standard |
| Scale to zero | Stops when the job ends (OnFailure or Never) | Yes, with min replicas 0 | No, the plan always runs |
| Releases | Redeploy the group | Revisions and traffic splitting | Deployment slots and swap |
| Billing | Per second of vCPU and memory | Per 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
🖱️ Drag to rotate · scroll or pinch to zoom
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.
🤔 What happens if…
Read this tour as text
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- Owner vs Contributor vs Reader vs User Access Administrator
- Azure RBAC Roles vs Microsoft Entra Roles
- Storage Account Key vs SAS vs Microsoft Entra ID
- Blob Soft Delete vs Versioning vs Snapshots
- ARM JSON Templates vs Bicep Files
- Availability Set vs Availability Zones vs Flexible Scale Set
- App Service scale up vs scale out
- Service Endpoint vs Private Endpoint
- NSG vs ASG vs Route Table
- Recovery Services Vault vs Backup Vault
- Azure Backup vs Azure Site Recovery