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-common-scale-patterns.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,12 @@ For example, you have a Virtual Machine Scale Set and want to:
52
52
In this example:
53
53
+ The weekend profile starts at 00:01, Saturday morning and ends at 04:00 on Monday morning.
54
54
+ The end times are left blank. The weekday profile will end when the weekend profile starts and vice-versa.
55
-
+There's no need for a default profile as there's no time that isn't covered by the other profiles.
55
+
+The default profile is irrelevant as there's no time that isn't covered by the other profiles.
56
56
57
+
>[!Note]
58
+
> Creating a recurring profile with no end time is only supported via the portal.
59
+
> If the end-time is not included in the CLI command, a default end-time of 23:59 will be implemented by creating a copy of the default profile with the naming convention `"name": {\"name\": \"Auto created default scale condition\", \"for\": \"<non-default profile name>\"}`
60
+
57
61
:::image type="content" source="./media/autoscale-common-scale-patterns/scale-differently-on-weekends.png" alt-text="A screenshot showing two autoscale profiles, one default and one for weekends." lightbox="./media/autoscale-common-scale-patterns/scale-differently-on-weekends.png":::
Copy file name to clipboardExpand all lines: articles/azure-monitor/autoscale/autoscale-multiprofile.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ In the portal, the end time field becomes the next start time for the default pr
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.
53
+
> Creating a recurring profile with no end time is only supported via the portal.
53
54
54
55
## Multiple profiles using templates, CLI, and PowerShell
55
56
@@ -205,18 +206,19 @@ The example below shows how to add a recurring autoscale profile, recurring on T
az monitor autoscale rule create -g rg-vmss1 --autoscale-name VMSS1-Autoscale-607 --scale in 1 --condition "Percentage CPU < 25 avg 5m" --profile-name Thursdays
211
+
az monitor autoscale rule create -g rg-vmss1 --autoscale-name VMSS1-Autoscale --scale in 1 --condition "Percentage CPU < 25 avg 5m" --profile-name Thursdays
211
212
212
-
az monitor autoscale rule create -g rg-vmss1 --autoscale-name VMSS1-Autoscale-607 --scale out 2 --condition "Percentage CPU > 50 avg 5m" --profile-name Thursdays
213
+
az monitor autoscale rule create -g rg-vmss1 --autoscale-name VMSS1-Autoscale --scale out 2 --condition "Percentage CPU > 50 avg 5m" --profile-name Thursdays
213
214
```
214
215
215
216
> [!NOTE]
216
-
> The JSON for your autoscale default profile is modified by adding a recurring profile.
217
-
> The `name` element of the default profile is changed to an object in the format: `"name": "{\"name\":\"Auto created default scale condition\",\"for\":\"recurring profile\"}"` where *recurring profile* is the profile name of your recurring profile.
217
+
> *The JSON for your autoscale default profile is modified by adding a recurring profile.
218
+
> The `name` element of the default profile is changed to an object in the format: `"name": "{\"name\":\"Auto created default scale condition\",\"for\":\"recurring profile name\"}"` where *recurring profile* is the profile name of your recurring profile.
218
219
> The default profile also has a recurrence clause added to it that starts at the end time specified for the new recurring profile.
219
-
> A new default profile is created for each recurring profile.
220
+
> * A new default profile is created for each recurring profile.
221
+
> * If the end time is not specified in the CLI command, the end time will be defaulted to 23:59.
220
222
221
223
## Updating the default profile when you have recurring profiles
0 commit comments