You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/autoscale/autoscale-multiprofile.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: edbaynash
6
6
ms.service: azure-monitor
7
7
ms.subservice: autoscale
8
8
ms.topic: conceptual
9
-
ms.date: 09/30/2022
9
+
ms.date: 01/10/2023
10
10
ms.reviewer: akkumari
11
11
12
12
@@ -43,6 +43,14 @@ The example below shows an autoscale setting with a default profile and recurrin
43
43
44
44
In the above example, on Monday after 6 AM, the recurring profile will be used. If the instance count is less than 3, autoscale scales to the new minimum of three. Autoscale continues to use this profile and scales based on CPU% until Monday at 6 PM. At all other times scaling will be done according to the default profile, based on the number of requests. After 6 PM on Monday, autoscale switches to the default profile. If for example, the number of instances at the time is 12, autoscale scales in to 10, which the maximum allowed for the default profile.
45
45
46
+
## Multiple contiguous profiles
47
+
Autoscale transitions between profiles based on their start times. The end time for a given profile is determined by the start time of the following profile.
48
+
49
+
In the portal,the end time field becomes the next start time for the default profile. You cannot specify the same time for the end of one profile and the start of the next. The portal will force the end time to be one minute before the start time of the following profile. During this minute, the default profile will become active. If you don't want the default profile to become active between recurring profiles, leave the end time field empty.
50
+
51
+
> [!TIP]
52
+
> To set up multiple contiguous profiles using the portal, leave the end time empty. The current profile will stop being used when the next profile becomes active. Only specify an end time when you want to revert to the default profile.
53
+
46
54
## Multiple profiles using templates, CLI, and PowerShell
47
55
48
56
When creating multiple profiles using templates, the CLI, and PowerShell, follow the guidelines below.
@@ -53,7 +61,9 @@ Follow the rules below when using ARM templates to create autoscale settings wit
53
61
54
62
See the autoscale section of the [ARM template resource definition](https://learn.microsoft.com/azure/templates/microsoft.insights/autoscalesettings) for a full template reference.
55
63
56
-
* Create a default profile for each recurring profile. If you have two recurring profiles, create two matching default profiles.
64
+
* There is no specification for end time. A profile will remain active until the next profile's start time.
65
+
66
+
Create a default profile for each recurring profile. If you have two recurring profiles, create two matching default profiles.
57
67
* The default profile must contain a `recurrence` section that is the same as the recurring profile, with the `hours` and `minutes` elements set for the end time of the recurring profile. If you don't specify a recurrence with a start time for the default profile, the last recurrence rule will remain in effect.
58
68
* The `name` element for the default profile is an object with the following format: `"name": "{\"name\":\"Auto created default scale condition\",\"for\":\"Recurring profile name\"}"` where the recurring profile name is the value of the `name` element for the recurring profile. If the name isn't specified correctly, the default profile will appear as another recurring profile.
59
69
*The rules above don't apply for non-recurring scheduled profiles.
0 commit comments