Home › Studies › AZ-104 › Compute › App Service Plans

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

Pricing tiers

TierComputeScale out (max instances)SlotsNotes
FreeShared VM, CPU quotas1 (shared); can't scale outNoneNo custom domains (azurewebsites.net only). 60 CPU min/day, 1 GB memory per hour per plan
SharedShared VM, CPU quotas1 (shared); can't scale outNoneBilled per app. Up to 500 custom domains, no TLS/SSL binding. 240 CPU min/day
BasicDedicated VMs3NoneManual scale out only. Always On, TLS/SNI bindings, backup, VNet integration. 99.95% SLA
StandardDedicated VMs105Autoscale starts here. SNI SSL plus one IP SSL
Premium v2, v3, v4Dedicated VMs3020 (Premium)Automatic scaling and zone redundancy
Isolated (IsolatedV2)Dedicated VMs in your VNet via App Service Environment100 per plan20Runs in an App Service Environment

Scale up vs scale out

Scale up / downScale out / in
What changesPricing tier and size: more CPU, memory, disk, featuresNumber of VM instances
PortalApp or plan > Scale up (App Service plan)Plan or app > Scale out (App Service plan)
EffectTakes seconds, affects all apps in the plan, no code change or redeploySame
Autoscale supportNo. Autoscale is horizontal onlyYes
CLIaz appservice plan update -g <rg> -n <plan> --sku P1v3az appservice plan update -g <rg> -n <plan> --number-of-workers 3

Three ways to scale out

MethodTiersHow it works
ManualBasic and upYou set the instance count
Autoscale (Azure Monitor)Standard and upMetric rules and schedules, applied to the whole plan
Automatic scaling (App Service)Premium v2 to v4Scales 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)

Automatic scaling (App Service)

TermMeaning
Maximum burstPlan-level maximum instances (up to 30 on Premium v2, v3, v4). Must be at least the plan's worker count
Always ready instancesPer-app minimum. The minimum value is 1
Maximum scale limitPer-app maximum, between 1 and maximum burst. Portal option: Enforce scale-out limit
Prewarmed instancesA buffer of warm instances, default 1. Billed once traffic activates always-ready instances

Per-app scaling

Zone redundancy

Creating and managing plans

CLI and PowerShell

TaskAzure CLIPowerShell
Create Linux planaz appservice plan create -g <rg> -n <plan> --is-linux --sku B1
Create Windows planaz appservice plan create -g <rg> -n <plan> --sku B1 --is-linux falseNew-AzAppServicePlan -ResourceGroupName <rg> -Name <plan> -Location <loc> -Tier Basic -NumberofWorkers 2 -WorkerSize Small
Windows container planaz appservice plan create -g <rg> -n <plan> --hyper-v --sku P1V3
Plan in an ASEaz appservice plan create -g <rg> -n <plan> --app-service-environment <ase> --sku I1v2
Scale up or downaz appservice plan update -g <rg> -n <plan> --sku P1v3Set-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 3Set-AzAppServicePlan -ResourceGroupName <rg> -Name <plan> -NumberofWorkers 3
Enable automatic scalingaz appservice plan update --name <plan> --resource-group <rg> --elastic-scale true --max-elastic-worker-count <n>
Always ready instancesaz webapp update -g <rg> -n <app> --minimum-elastic-instance-count <n>
Prewarmed instancesaz webapp update -g <rg> -n <app> --prewarmed-instance-count <n>
Per-app scaling on planaz appservice plan update ... --set properties.perSiteScaling=trueSet-AzAppServicePlan ... -PerSiteScaling $true
Per-app worker limitaz webapp config set -g <rg> -n <app> --number-of-workers 5Set-AzWebApp ... -NumberOfWorkers 5
Create autoscale settingaz monitor autoscale create -g <rg> --resource <plan-id> --min-count 2 --max-count 5 --count 3
Scale-out ruleaz monitor autoscale rule create -g <rg> --autoscale-name <name> --scale out 1 --condition "CpuPercentage > 75 avg 5m"
Scale-in ruleaz monitor autoscale rule create -g <rg> --autoscale-name <name> --scale in 1 --condition "CpuPercentage < 25 avg 5m"
Disable autoscaleaz monitor autoscale update -g <rg> -n <name> --enabled false
List, show, delete planaz appservice plan list, show, delete -n <plan> -g <rg> --yesGet-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

Checked against Microsoft Learn on November 13, 2026.

← ContainersApp Service Configuration →