App Service Plans
tiers · scale up and out · autoscale · automatic scaling · per-app scaling · zone redundancy · moving apps
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
What a plan is
- An App Service app always runs in a plan. The plan defines the operating system (Windows or Linux), region, number of VM instances, VM size and pricing tier.
- All apps in a plan share the same VM instances. All deployment slots of an app, diagnostic logs, backups and WebJobs also use CPU and memory on those instances. Scaling the plan scales every app in it.
- A plan with no apps still incurs charges, because it keeps the configured VM instances reserved. Stopping or deleting an app doesn't stop the billing. Delete the plan or set it to Free.
- When you delete the last app in a plan, App Service deletes the plan by default.
Pricing tiers
| Tier | Compute | Scale out (max instances) | Slots | Notes |
|---|---|---|---|---|
| Free | Shared VM, CPU quotas | 1 (shared); can't scale out | None | No custom domains (azurewebsites.net only). 60 CPU min/day, 1 GB memory per hour per plan |
| Shared | Shared VM, CPU quotas | 1 (shared); can't scale out | None | Billed per app. Up to 500 custom domains, no TLS/SSL binding. 240 CPU min/day |
| Basic | Dedicated VMs | 3 | None | Manual scale out only. Always On, TLS/SNI bindings, backup, VNet integration. 99.95% SLA |
| Standard | Dedicated VMs | 10 | 5 | Autoscale starts here. SNI SSL plus one IP SSL |
| Premium v2, v3, v4 | Dedicated VMs | 30 | 20 (Premium) | Automatic scaling and zone redundancy |
| Isolated (IsolatedV2) | Dedicated VMs in your VNet via App Service Environment | 100 per plan | 20 | Runs in an App Service Environment |
- Free and Shared apps get CPU minutes on a VM shared with other customers' apps. Dedicated tiers (Basic to Premium v4) give your plan its own VMs. Isolated runs on dedicated VMs in a dedicated virtual network.
- Billing: Free is free. Shared is charged per app for its CPU quota. Basic and above are charged per VM instance of the plan. Isolated is charged per worker in the ASE.
- Custom domains, TLS/SSL bindings, deployment slots and backups have no extra charge in themselves. Exceptions: App Service domains, App Service certificates, and IP-based TLS connections (hourly charge). SNI TLS is free.
- Before you switch a plan off the Free tier, remove the subscription's spending limit.
- You can't scale to a tier that doesn't support what the app already uses. An app with more than 5 deployment slots can't be scaled down to Standard.
- Premium v4 has no stable outbound IP addresses (the portal shows Dynamic). Use a NAT gateway for a stable outbound IP. Premium v4 isn't available for Windows containers.
- Microsoft's pages differ for the original Premium (v1): the limits page lists 20 scale-out instances for v1 and 30 for v2 to v4, while the scale-up page says 30 for Premium. Don't rely on a Premium v1 figure; the 30 here is for Premium v2 to v4.
- Per-plan storage: Free and Shared 1 GB, Basic 10 GB, Standard 50 GB, Premium 250 GB.
Scale up vs scale out
| Scale up / down | Scale out / in | |
|---|---|---|
| What changes | Pricing tier and size: more CPU, memory, disk, features | Number of VM instances |
| Portal | App or plan > Scale up (App Service plan) | Plan or app > Scale out (App Service plan) |
| Effect | Takes seconds, affects all apps in the plan, no code change or redeploy | Same |
| Autoscale support | No. Autoscale is horizontal only | Yes |
| CLI | az appservice plan update -g <rg> -n <plan> --sku P1v3 | az appservice plan update -g <rg> -n <plan> --number-of-workers 3 |
- Related resources such as Azure SQL and Storage aren't part of the plan. Scale them separately.
- Premium v3 or v4 greyed out means the underlying deployment unit doesn't support it. Create the app or plan in a new resource group with that tier selected and redeploy, or clone the app. After that you can scale down and back up safely.
- Check SKU availability with
az appservice list-locations --sku P1V3(add--linux-workers-enabledfor Linux). - Premium v4: limit each synchronous scale-out request to 2 or fewer instances; loop in steps for more. After a failure wait 5 minutes and retry.
Three ways to scale out
| Method | Tiers | How it works |
|---|---|---|
| Manual | Basic and up | You set the instance count |
| Autoscale (Azure Monitor) | Standard and up | Metric rules and schedules, applied to the whole plan |
| Automatic scaling (App Service) | Premium v2 to v4 | Scales on incoming HTTP traffic, configured per app, with always-ready and prewarmed instances |
Use only one scaling method on a plan. To stop autoscale, open the Autoscale pane, select Manual scale, set the instance count and Save. That removes the rules.
Autoscale (Azure Monitor)
- Prerequisites: a plan on Standard or higher, at least one app, and Owner or Contributor on the plan (or a custom role with
Microsoft.Insights/autoscaleSettings/*). - Only one autoscale setting per resource. A setting has up to 20 profiles, and each profile has up to 10 rules.
- A profile has minimum, maximum and default capacity. The default is used when the metric can't be read: below default it scales out to default; above default it doesn't scale in.
- Profile types: Default (one per setting, no end date), Fixed-date (one event, start and end at most 365 days apart) and Recurrence (days of the week; ends when the next profile starts). Evaluation order: fixed-date, then recurring, then default.
- Scale out if ANY scale-out rule triggers (the largest result wins). Scale in only if ALL scale-in rules trigger (the result removing the fewest instances wins).
- The autoscale job runs every 30 to 60 seconds depending on resource type. Cool-down is the wait after a scale action before a rule can act again; the portal default is 5 minutes.
- Flapping happens when a scale event triggers the opposite event. Autoscale estimates the result of a scale in and may defer it or scale in by fewer instances. Keep a margin between thresholds (for example out at 600, in at 400). It doesn't check for flapping on scale out.
- Portal default rule: increase count by 1 when CPU Percentage is greater than 70% over 10 minutes. Add at least one scale-in rule. When you first create custom autoscale the current count is 1; raise Maximum or it stays at one instance.
- App Service plan metrics for autoscale:
CpuPercentage,MemoryPercentage,DiskQueueLength,HttpQueueLength,BytesReceived,BytesSent. - Portal: Scale out (App Service plan) > Custom autoscale, add rules, set instance limits (minimum, maximum, default), Save. Scheduled conditions: Add a scale condition, then repeat on specific days or specify start and end dates. The Run history tab shows scale events.
Automatic scaling (App Service)
| Term | Meaning |
|---|---|
| Maximum burst | Plan-level maximum instances (up to 30 on Premium v2, v3, v4). Must be at least the plan's worker count |
| Always ready instances | Per-app minimum. The minimum value is 1 |
| Maximum scale limit | Per-app maximum, between 1 and maximum burst. Portal option: Enforce scale-out limit |
| Prewarmed instances | A buffer of warm instances, default 1. Billed once traffic activates always-ready instances |
- Billed per second for every instance, including prewarmed ones. Works for Windows and Linux, code or container. Not supported for deployment slot traffic.
- Only web apps can be in the plan: a Functions app in the same plan disables automatic scaling. Enabling it turns off ARR Affinity on existing apps. Health Check can be used with it.
- Portal: web app > Settings > Scale-out (App Service plan) > Automatic, set Maximum burst, Save. To turn it off, select Manual and Save.
- The prewarmed instance count can be changed only with the CLI. The maximum scale limit can be changed only in the portal.
- Microsoft's CLI help text for
--elastic-scalelists fewer tiers than the how-to page; the how-to page (Premium v2 to v4) is authoritative.
Per-app scaling
- A plan property,
perSiteScaling(default false). When true, each app and each slot can have its ownnumberOfWorkerslimit within the plan's instances. Available on Standard, Premium, Premium v2, v3 and Isolated. - It doesn't reduce plan capacity or billing, doesn't respond to demand, and placement is best effort.
- In the CLI,
az appservice plan ... --number-of-workersis the plan capacity.az webapp config set ... --number-of-workersis the per-app or per-slot limit.
Zone redundancy
- Configurable for Premium v2, v3 and v4 plans. It spreads the plan's instances across availability zones. It needs at least 2 instances: the platform enforces 2 if you request fewer and charges for 2. There is no extra charge per instance.
- The plan must be on a scale unit that supports zones. Check Scale out > Maximum available zones or
az appservice plan show -n <plan> -g <rg> --query properties.maximumNumberOfZones(greater than 1 means supported). - Existing plan, manual mode: raise the instance count to at least 2, select Zone Redundancy, Save. Rules-based autoscale: update every profile so minimum, default and maximum are each at least 2, then use the CLI or Bicep.
- If the scale unit doesn't support zones, create a new plan with zone redundancy selected, in a new resource group, and redeploy the apps. Apps can't move between plans on different scale units.
- CLI:
az appservice plan create -n <plan> -g <rg> --zone-redundant --number-of-workers 2 --sku P1V3; on an existing planaz appservice plan update -n <plan> -g <rg> --set zoneRedundant=true(addsku.capacity=2if capacity is under 2).
Creating and managing plans
- Portal: Create App Service Plan, then project details, name, Operating System, Region, Pricing tier, Zone redundancy, Review + create.
- To put a plan in an App Service Environment, pick the existing ASE in the Region list. The ASE must already be fully deployed.
- Move an app to another plan: the target plan must be in the same resource group, the same region and the same OS type. Windows to Linux isn't supported. Disable VNet integration on the app first. The portal lists only plans in the same resource group and region.
- Plans are deployed into a deployment unit called a webspace. All plans created with the same resource group, region and OS combination land in the same webspace. An app can move only between plans in the same webspace. You can't pick or change the webspace.
- Moving to a lower tier can fail if the app uses a feature the target lacks, such as SNI SSL.
- A plan's region can't be changed. To run an app in another region, use Clone App into a plan in the new region.
- Create-plan errors such as "The pricing tier is not allowed in this resource group" come from incompatibility with existing apps or plans in that resource group (tier, region, OS, zones, function apps). Create the plan in a new resource group.
- Always On is off by default: the app is unloaded after 20 minutes without requests. When on, the front end pings the app root every 5 minutes. Continuous and cron-triggered WebJobs need it. Available from Basic.
- Asynchronous scaling (preview) for Basic, Standard and Premium lets you request a target count the platform fills in as capacity appears; cancel by setting TargetWorkerCount to 0.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Create Linux plan | az appservice plan create -g <rg> -n <plan> --is-linux --sku B1 | |
| Create Windows plan | az appservice plan create -g <rg> -n <plan> --sku B1 --is-linux false | New-AzAppServicePlan -ResourceGroupName <rg> -Name <plan> -Location <loc> -Tier Basic -NumberofWorkers 2 -WorkerSize Small |
| Windows container plan | az appservice plan create -g <rg> -n <plan> --hyper-v --sku P1V3 | |
| Plan in an ASE | az appservice plan create -g <rg> -n <plan> --app-service-environment <ase> --sku I1v2 | |
| Scale up or down | az appservice plan update -g <rg> -n <plan> --sku P1v3 | Set-AzAppServicePlan -ResourceGroupName <rg> -Name <plan> -Tier PremiumV3 -WorkerSize Small |
| Scale out or in (manual) | az appservice plan update -g <rg> -n <plan> --number-of-workers 3 | Set-AzAppServicePlan -ResourceGroupName <rg> -Name <plan> -NumberofWorkers 3 |
| Enable automatic scaling | az appservice plan update --name <plan> --resource-group <rg> --elastic-scale true --max-elastic-worker-count <n> | |
| Always ready instances | az webapp update -g <rg> -n <app> --minimum-elastic-instance-count <n> | |
| Prewarmed instances | az webapp update -g <rg> -n <app> --prewarmed-instance-count <n> | |
| Per-app scaling on plan | az appservice plan update ... --set properties.perSiteScaling=true | Set-AzAppServicePlan ... -PerSiteScaling $true |
| Per-app worker limit | az webapp config set -g <rg> -n <app> --number-of-workers 5 | Set-AzWebApp ... -NumberOfWorkers 5 |
| Create autoscale setting | az monitor autoscale create -g <rg> --resource <plan-id> --min-count 2 --max-count 5 --count 3 | |
| Scale-out rule | az monitor autoscale rule create -g <rg> --autoscale-name <name> --scale out 1 --condition "CpuPercentage > 75 avg 5m" | |
| Scale-in rule | az monitor autoscale rule create -g <rg> --autoscale-name <name> --scale in 1 --condition "CpuPercentage < 25 avg 5m" | |
| Disable autoscale | az monitor autoscale update -g <rg> -n <name> --enabled false | |
| List, show, delete plan | az appservice plan list, show, delete -n <plan> -g <rg> --yes | Get-AzAppServicePlan, Remove-AzAppServicePlan |
Exam Tips
Tick each tip once you can answer it without looking.
“Custom domain with an HTTPS binding; the plan is Free or Shared” → Scale up to Basic or higher. Trap: Shared. It can map a custom domain but not secure it, and Free can't map one at all.
“Deployment slots needed; the app is on Basic” → Scale up to Standard (5 slots) or Premium (20). Trap: adding the slot on Basic. Basic has no slots.
“CPU-based autoscale rules; the plan is on Basic” → Scale up to Standard or higher first. Trap: Basic. It supports manual scale out only, up to 3 instances.
“Each instance needs more CPU and memory” → Scale up (change tier or size). Trap: scale out or autoscale. They change the instance count, not the instance size.
“Autoscale scale-out at CPU above 70%, but the plan stays at 1 instance” → The Maximum instance limit is still 1: raise it. Trap: adding more rules. They can't help while the maximum is 1.
“Scale out on CPU above 70% or on memory above 80%; only memory is true” → It scales out: any one scale-out rule is enough. Scale in needs all scale-in rules. Trap: requiring both for scale out.
“Scale out at 600, scale in below 600, and autoscale seems to do nothing” → Flapping protection defers the scale in: leave a margin (for example scale in below 400). Trap: blaming a bug or the cool-down.
“10 instances on weekdays 8 to 18, otherwise 2” → Default profile (min, max, default 2) plus a Monday to Friday recurrence profile starting at 08:00 that ends at 18:00 when the default resumes. Trap: two default profiles. A setting has only one.
“A one-off sale day needs a higher maximum” → Fixed-date profile. Trap: a recurrence profile, which repeats weekly.
“Move an app to another plan” → The target plan must be in the same resource group, region and OS type. Disable VNet integration first. Trap: a Windows to Linux move, or a plan in another region. Neither is supported.
“Run an existing app in another region” → Clone App into a plan in the new region. Trap: changing the plan's region. It can't be changed.
“Stopped the only app in a plan, but the bill continues” → The plan still reserves the VM instances: delete the plan or set it to Free. Trap: stopping or deleting only the app. Charges follow the plan's reserved instances.
“One of several apps in a plan must scale on its own” → Move it to a new plan, or limit it with per-app scaling. Trap: scaling the plan. That scales every app in it.
“Scale out on HTTP traffic with no rules and a floor of warm instances” → Automatic scaling (Premium v2 to v4) with Always ready instances. Trap: running Azure Monitor autoscale at the same time. Use only one method.
“Limit one app to 5 instances so a backend isn't overwhelmed” → Maximum scale limit (automatic scaling) or per-app scaling numberOfWorkers. Trap: Maximum burst. It caps the whole plan.
“Enable automatic scaling; the plan also hosts a Functions app” → Not possible: a Functions app in the plan disables automatic scaling. Trap: assuming it covers Functions apps.
“Make a plan zone redundant” → Premium v2, v3 or v4, at least 2 instances, a scale unit that supports zones. Trap: Basic or Standard. They don't support zone redundancy. An unsupported scale unit needs a new plan in a new resource group.
“More than 30 instances, or network isolation, for a plan” → App Service Environment (Isolated v2), up to 100 per plan. Trap: Premium v2 to v4. Their maximum is 30.
“Always On for a continuous WebJob; the app is on Free” → Scale up to Basic or higher and turn on Always On. Trap: leaving it off. The app is unloaded after 20 minutes without requests.
“Create an autoscale setting for a plan” → Owner or Contributor on the plan, or a role with Microsoft.Insights/autoscaleSettings/*. Trap: Reader. It can't create settings.
Sources
- Azure App Service plans
- Scale up features and capacities
- How to enable automatic scaling
- Per-app scaling for high-density hosting
- Manage an App Service plan
- Reliability in Azure App Service
- Configure App Service plans for zone redundancy
- Get started with autoscale in Azure
- Understand autoscale settings
- Autoscale in Azure Monitor (overview)
- Autoscale flapping
- Autoscale common metrics
- Azure subscription and service limits (App Service)
- Set up staging environments
- Configure an App Service app (Always On)
- Configure Premium V3 tier
- Configure Premium v4 tier
- App Service Environment overview
- az appservice plan
- az monitor autoscale
- New-AzAppServicePlan
Checked against Microsoft Learn on November 13, 2026.