Skip to content

Commit 25dbb1f

Browse files
authored
Merge pull request #283828 from EdB-MSFT/autoscle-custom-metric
Updates for SFI, freshness
2 parents 5b60d16 + 409351e commit 25dbb1f

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

articles/azure-monitor/autoscale/autoscale-custom-metric.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ ms.author: edbaynash
66
ms.service: azure-monitor
77
ms.subservice: autoscale
88
ms.topic: how-to
9-
ms.date: 07/09/2023
9+
ms.date: 08/07/2024
1010
ms.reviewer: akkumari
1111

1212
# Customer intent: As a user or dev ops administrator, I want to use the portal to set up autoscale so I can scale my resources.
1313

1414
---
1515
# Autoscale a web app by using custom metrics
1616

17-
This article describes how to set up autoscale for a web app by using a custom metric in the Azure portal.
17+
This article takes you through how to set up autoscale for a web app by using a custom metric in the Azure portal.
1818

1919
Autoscale allows you to add and remove resources to handle increases and decreases in load. In this article, we'll show you how to set up autoscale for a web app by using one of the Application Insights metrics to scale the web app in and out.
2020

@@ -31,7 +31,7 @@ Azure Monitor autoscale applies to:
3131

3232
## Prerequisite
3333

34-
You need an Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free).
34+
You must have an Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free).
3535

3636
## Overview
3737

@@ -48,7 +48,7 @@ An App Service plan defines a set of compute resources for a web app to run on.
4848
1. Open the [Azure portal](https://portal.azure.com).
4949
1. Search for and select **App Service plans**.
5050

51-
:::image type="content" source="media\autoscale-custom-metric\search-app-service-plan.png" alt-text="Screenshot that shows searching for App Service plans.":::
51+
:::image type="content" source="media\autoscale-custom-metric\search-app-service-plan.png" lightbox="media\autoscale-custom-metric\search-app-service-plan.png" alt-text="Screenshot that shows searching for App Service plans.":::
5252

5353
1. On the **App Service plan** page, select **Create**.
5454
1. Select a **Resource group** or create a new one.
@@ -61,26 +61,26 @@ An App Service plan defines a set of compute resources for a web app to run on.
6161
6262
1. Select **Review + create** > **Create**.
6363

64-
:::image type="content" source="media\autoscale-custom-metric\create-app-service-plan.png" alt-text="Screenshot that shows the Basics tab of the Create App Service Plan screen on which you configure the App Service plan.":::
64+
:::image type="content" source="media\autoscale-custom-metric\create-app-service-plan.png" lightbox="media\autoscale-custom-metric\create-app-service-plan.png" alt-text="Screenshot that shows the Basics tab of the Create App Service Plan screen on which you configure the App Service plan.":::
6565

6666
## Create a web app
6767

6868
1. Search for and select **App services**.
6969

70-
:::image type="content" source="media\autoscale-custom-metric\search-app-services.png" alt-text="Screenshot that shows searching for App Services.":::
70+
:::image type="content" source="media\autoscale-custom-metric\search-app-services.png" lightbox="media\autoscale-custom-metric\search-app-services.png" alt-text="Screenshot that shows searching for App Services.":::
7171

7272
1. On the **App Services** page, select **Create**.
7373
1. On the **Basics** tab, enter a **Name** and select a **Runtime stack**.
7474
1. Select the **Operating System** and **Region** that you chose when you defined your App Service plan.
7575
1. Select the **App Service plan** that you created earlier.
7676
1. Select the **Monitoring** tab.
7777

78-
:::image type="content" source="media\autoscale-custom-metric\create-web-app.png" alt-text="Screenshot that shows the Basics tab of the Create Web App page where you set up a web app.":::
78+
:::image type="content" source="media\autoscale-custom-metric\create-web-app.png" lightbox="media\autoscale-custom-metric\create-web-app.png" alt-text="Screenshot that shows the Basics tab of the Create Web App page where you set up a web app.":::
7979

8080
1. On the **Monitoring** tab, select **Yes** to enable Application Insights.
8181
1. Select **Review + create** > **Create**.
8282

83-
:::image type="content" source="media\autoscale-custom-metric\enable-application-insights.png"alt-text="Screenshot that shows the Monitoring tab of the Create Web App page where you enable Application Insights.":::
83+
:::image type="content" source="media\autoscale-custom-metric\enable-application-insights.png" lightbox="media\autoscale-custom-metric\enable-application-insights.png" alt-text="Screenshot that shows the Monitoring tab of the Create Web App page where you enable Application Insights.":::
8484

8585
## Configure autoscale
8686

@@ -89,7 +89,7 @@ Configure the autoscale settings for your App Service plan.
8989
1. Search and select **autoscale** in the search bar or select **Autoscale** under **Monitor** in the menu bar on the left.
9090
1. Select your App Service plan. You can only configure production plans.
9191

92-
:::image type="content" source="media\autoscale-custom-metric\autoscale-overview-page.png" alt-text="Screenshot that shows the Autoscale page where you select the resource to set up autoscale.":::
92+
:::image type="content" source="media\autoscale-custom-metric\autoscale-overview-page.png" lightbox="media\autoscale-custom-metric\autoscale-overview-page.png" alt-text="Screenshot that shows the Autoscale page where you select the resource to set up autoscale.":::
9393

9494
### Set up a scale-out rule
9595

@@ -98,7 +98,7 @@ Set up a scale-out rule so that Azure spins up another instance of the web app w
9898
1. Select **Custom autoscale**.
9999
1. In the **Rules** section of the default scale condition, select **Add a rule**.
100100

101-
:::image type="content" source="media/autoscale-custom-metric/autoscale-settings.png" alt-text="Screenshot that shows the Autoscale setting page where you set up the basic autoscale settings.":::
101+
:::image type="content" source="media/autoscale-custom-metric/autoscale-settings.png" lightbox="media/autoscale-custom-metric/autoscale-settings.png" alt-text="Screenshot that shows the Autoscale setting page where you set up the basic autoscale settings.":::
102102

103103
1. From the **Metric source** dropdown, select **Other resource**.
104104
1. From **Resource type**, select **Application Insights**.
@@ -110,7 +110,7 @@ Set up a scale-out rule so that Azure spins up another instance of the web app w
110110
1. Under **Action**, set **Operation** to **Increase count by**. Set **Instance count** to **1**.
111111
1. Select **Add**.
112112

113-
:::image type="content" source="media/autoscale-custom-metric/scale-out-rule.png" alt-text="Screenshot that shows the Scale rule page where you configure the scale-out rule.":::
113+
:::image type="content" source="media/autoscale-custom-metric/scale-out-rule.png" lightbox="media/autoscale-custom-metric/scale-out-rule.png" alt-text="Screenshot that shows the Scale rule page where you configure the scale-out rule.":::
114114

115115
### Set up a scale-in rule
116116

@@ -127,28 +127,28 @@ Set up a scale-in rule so that Azure spins down one of the instances when the nu
127127
1. Under **Action**, set **Operation** to **Decrease count by** and set **Instance count** to **1**.
128128
1. Select **Add**.
129129

130-
:::image type="content" source="media/autoscale-custom-metric/scale-in-rule.png" alt-text="Screenshot that shows the Scale rule page where you configure the scale-in rule.":::
130+
:::image type="content" source="media/autoscale-custom-metric/scale-in-rule.png" lightbox="media/autoscale-custom-metric/scale-in-rule.png" alt-text="Screenshot that shows the Scale rule page where you configure the scale-in rule.":::
131131

132132
### Limit the number of instances
133133

134134
1. Set the maximum number of instances that can be spun up in the **Maximum** field of the **Instance limits** section. For example, use **4**.
135135
1. Select **Save**.
136136

137-
:::image type="content" source="media/autoscale-custom-metric/autoscale-instance-limits.png" alt-text="Screenshot that shows the Autoscale setting page where you set up instance limits.":::
137+
:::image type="content" source="media/autoscale-custom-metric/autoscale-instance-limits.png" lightbox="media/autoscale-custom-metric/autoscale-instance-limits.png" alt-text="Screenshot that shows the Autoscale setting page where you set up instance limits.":::
138138

139139
## Clean up resources
140140

141141
If you're not going to continue to use this application, delete resources.
142142

143143
1. On the App Service overview page, select **Delete**.
144144

145-
:::image type="content" source="media/autoscale-custom-metric/delete-web-app.png" alt-text="Screenshot that shows the App Service page where you can delete the web app.":::
145+
:::image type="content" source="media/autoscale-custom-metric/delete-web-app.png" lightbox="media/autoscale-custom-metric/delete-web-app.png" alt-text="Screenshot that shows the App Service page where you can delete the web app.":::
146146

147-
1. On the **Autoscale setting** page, in the **JSON** tab, select the trash bin icon next to the **Autoscale setting name**. Note that the autoscale settings are not deleted along with the App Service plan unless you delete the resource group. If you dont delete the Autoscale settings and you recreate an app service plan with the same name, it will inherit the original autoscale settings.
147+
1. On the **Autoscale setting** page, in the **JSON** tab, select the trash bin icon next to the **Autoscale setting name**. Note that the autoscale settings aren't deleted along with the App Service plan unless you delete the resource group. If you don't delete the Autoscale settings and you recreate an app service plan with the same name, it inherits the original autoscale settings.
148148

149149
1. On the **App Service plans** page, select **Delete**.
150150

151-
:::image type="content" source="media/autoscale-custom-metric/delete-service-plan.png" alt-text="Screenshot that shows the App Service plans page where you can delete the App Service plan.":::
151+
:::image type="content" source="media/autoscale-custom-metric/delete-service-plan.png" lightbox="media/autoscale-custom-metric/delete-service-plan.png" alt-text="Screenshot that shows the App Service plans page where you can delete the App Service plan.":::
152152

153153
## Next steps
154154

144 Bytes
Loading
29 Bytes
Loading

0 commit comments

Comments
 (0)