Scale Out an App Service Plan Automatically in Azure

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The developers at your company are experiencing latency and timeouts with their web application running in Azure App Service. You need to find a solution to this problem by automatically scaling the underlying infrastructure to prevent future service interruptions.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Rule for Scaling Out and In
  1. In the Azure portal, click App Services.
    1. Select the web app provisioned with this lab.
    2. In the left menu, click Scale out (App Service plan).
    3. Select Custom autoscale.
    4. Click +Add a rule to add a rule for scaling out.
    5. Leave all values as the default and click Add.
    6. Click +Add a rule to add another rule for scaling in.
    7. Set the following values:
      • Operator: Less than
      • Metric threshold to trigger scale action: 30
      • Operation: Decrease count by
      • Instance count: 1
    8. Click Save.
Configure Notifications
  1. From the Scale out (App Service plan) top menu, select Notify.
  2. Select Email administrators and Email co-administrators.
  3. (Optional) In Additional administrator email(s), enter your email.
  4. Click Save.

Additional Resources

An Azure web app is provided with this hands-on lab. Log in to the Azure portal and configure autoscaling rules for the app service plan.

Within the app service plan (the underlying infrastructure), you should add an instance if the CPU utilization rises above 70%.

Also, create a rule to decrease by one instance if the CPU usage falls below 30%.

Finally, notify the administrators of the subscription when one of these rules kicks in.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?