Scale up, scale out and autoscale

Azure Portal, Hands On15 minutesCosts moneySteps checked 25 October 2026By Cloud Hands On

In this task you'll scale an App Service plan.

Scaling up moves the plan to a bigger tier or size: more processor, memory and features. Scaling out adds more instances, so traffic is shared between several servers.

Autoscale adds and removes instances for you, based on rules such as "add one when average CPU is above 70% for 10 minutes". It needs Premium (or the older Standard), and always set a sensible maximum.

Example. SS Kaiser's shop plan autoscales between 2 and 6 instances. During the Boxing Day sale it reaches 6, and by the next evening it's back to 2, so the team only pays for the busy hours.

Costs money. Scaling needs a paid tier: manual scale-out starts at Basic, and autoscale needs Premium (or the older Standard). Premium v3 P0V3 costs about 0.087 USD (roughly 7p) an hour per instance, and every extra instance is billed. Try it briefly, then scale back in and down.

Before you start

You need: Contributor on the App Service plan. Time: 15 minutes.

Where to look

  1. App Services
  2. app-practice
  3. App Service plan
  4. Scale out

Steps

  1. Open the app and select Scale up under App Service plan. Compare the tiers and their prices, but don't change anything yet.
  2. Select Scale out. On Free you can't add instances. To follow along without paying, read the rest of the steps.
  3. To try it, scale up to Premium v3 P0V3 first (or Standard S1, under Legacy).From this moment the plan costs money every hour.
  4. In Scale out, choose Rules Based (or Custom autoscale). Set the minimum to 1, the maximum to 2 and the default to 1.
  5. Add a rule: increase the count by 1 when average CPU Percentage is over 70%. Add a matching rule to decrease by 1 when it's under 30%. Select Save.
  6. Read the Run history tab to see when autoscale acted. Then set scaling back to a single instance and scale the plan down to Free F1.

Commands

# Scale up to Premium v3 P0V3 (costs money)
az appservice plan update --resource-group rg-portal-practice --name asp-practice --sku P0V3

# Scale out manually to 2 instances
az appservice plan update --resource-group rg-portal-practice --name asp-practice --number-of-workers 2

# Autoscale between 1 and 2 instances on CPU
az monitor autoscale create --resource-group rg-portal-practice --resource asp-practice \
  --resource-type Microsoft.Web/serverfarms --name autoscale-practice --min-count 1 --max-count 2 --count 1
az monitor autoscale rule create --resource-group rg-portal-practice --autoscale-name autoscale-practice \
  --condition "CpuPercentage > 70 avg 10m" --scale out 1

# Back to one instance on Free
az monitor autoscale delete --resource-group rg-portal-practice --name autoscale-practice
az appservice plan update --resource-group rg-portal-practice --name asp-practice --number-of-workers 1 --sku F1

Watch out for

Cost
Every instance is billed for every hour it runs. A rule without a sensible maximum can multiply your bill during a traffic spike or an attack.
Security
Scaling doesn't change who can reach the app. Very large automatic scale-outs can hide an attack; alerts on instance count help.
Common mistakes
Adding a scale-out rule but no scale-in rule, so instances never go away. Setting the maximum too high. Forgetting to scale the plan back down after testing.

Clean up

  1. app-practice
  2. App Service plan
  3. Scale up

Turn autoscale off (or set it to one instance), scale the plan back to Free F1, and at the end of the section delete rg-portal-practice to remove everything.

Words to know

Scale up
Change to a bigger tier or size.
Scale out
Add more instances of the same size.
Autoscale rule
A condition, such as high CPU, that adds or removes instances automatically.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going