File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ResourceManager/Insights/Commands.Insights/Autoscale Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
using System . Management . Automation ;
18
18
using Microsoft . Azure . Commands . ResourceManager . Common ;
19
19
using Microsoft . Azure . Management . Insights . Models ;
20
- using Microsoft . WindowsAzure . Commands . Utilities . Common ;
21
20
22
21
namespace Microsoft . Azure . Commands . Insights . Autoscale
23
22
{
@@ -157,9 +156,10 @@ public AutoscaleProfile CreateSettingProfile()
157
156
Maximum = this . MaximumCapacity ,
158
157
} ,
159
158
160
- // Premise: Fixed date schedule and recurrence are mutually exclusive
159
+ // NOTE: "always" is specify by a null value in the FixedDate value with null ScheduledDays(Minutes, Seconds)
160
+ // Premise: Fixed date schedule and recurrence are mutually exclusive, but they can both be missing so that the rule is always enabled.
161
161
// Assuming dates are validated by the server
162
- FixedDate = this . ScheduleDays == null
162
+ FixedDate = this . ScheduleDays == null && ( this . StartTimeWindow != default ( DateTime ) || this . EndTimeWindow != default ( DateTime ) )
163
163
? new TimeWindow ( )
164
164
{
165
165
Start = this . StartTimeWindow ,
You can’t perform that action at this time.
0 commit comments