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
- In the Azure portal, click App Services.
- Select the web app provisioned with this lab.
- In the left menu, click Scale out (App Service plan).
- Select Custom autoscale.
- Click +Add a rule to add a rule for scaling out.
- Set the Instance limits as the Minimum of 1 and the Maximum of 2.
- Leave all the other values as the default and click Add.
- Click +Add a rule to add another rule for scaling in.
- Set the following values:
- Operator: Less than
- Metric threshold to trigger scale action: 30
- Operation: Decrease count by
- Instance count: 1
- Set the Instance limits as the Minimum of 1 and the Maximum of 2.
- Click Save.
- In the Azure portal, click App Services.
- Configure Notifications
- From the Scale out (App Service plan) top menu, select Notify.
- Select Email administrators and Email co-administrators.
- (Optional) In Additional administrator email(s), enter your email.
- Click Save.