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
+9-151Lines changed: 9 additions & 151 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ In the above example, on Monday after 6 AM, the recurring profile will be used.
46
46
## Multiple contiguous profiles
47
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
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.
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
50
51
51
> [!TIP]
52
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.
@@ -57,19 +57,14 @@ When creating multiple profiles using templates, the CLI, and PowerShell, follow
57
57
58
58
## [ARM templates](#tab/templates)
59
59
60
-
Follow the rules below when using ARM templates to create autoscale settings with multiple profiles:
61
-
62
60
See the autoscale section of the [ARM template resource definition](https://learn.microsoft.com/azure/templates/microsoft.insights/autoscalesettings) for a full template reference.
63
61
64
-
* There is no specification for end time. A profile will remain active until the next profile's start time.
65
-
Create a default profile for each recurring profile. If you have two recurring profiles, create two matching default profiles.
66
-
* 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.
67
-
* 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.
68
-
*The rules above don't apply for non-recurring scheduled profiles.
62
+
Note that there is no specification in the template for end time. A profile will remain active until the next profile's start time.
63
+
69
64
70
65
## Add a recurring profile using AIM templates
71
66
72
-
The example below shows how to create two recurring profiles. One profile for weekends between 06:00 and 19:00, Saturday and Sunday, and a second for Mondays between 04:00and 15:00. Note the two default profiles, one for each recurring profile.
67
+
The example below shows how to create two recurring profiles. One profile for weekends from 00:01 on Saturday morning and a second Weekday profile starting on Mondays at 04:00. That means that the weekend profile will start on Saturday morning at one minute passed midnight and end on Monday morning at 04:00. The Weekday profile will start at 4am on Monday end just after midnight on Saturday morning.
73
68
74
69
Use the following command to deploy the template:
75
70
` az deployment group create --name VMSS1-Autoscale-607 --resource-group rg-vmss1 --template-file VMSS1-autoscale.json`
@@ -92,7 +87,7 @@ where *VMSS1-autoscale.json* is the the file containing the JSON object below.
0 commit comments