Users may have problems adding auto-shutdown schedules to Compute virtual machines


It has been brought to our attention that the experience to add an auto-shutdown schedule to a Compute virtual machine may be broken.  Upon trying to add or edit the schedule, we've noticed the Save button doesn't enable in some cases.

We will be putting one of our developers on this bug to fix it, and in the meantime there is a way to add the schedule from Powershell:

$newSchedule = @{ 
 Location = "southeastasia" 
 Properties = @{ 
   status= "Enabled"; 
   timeZoneId= "Pacific Standard Time"; 
   taskType= "ComputeVmShutdownTask"; 
   targetResourceId= "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Compute/virtualMachines/my-vm"; 
   dailyRecurrence = @{time= 2100} 
  } 
 ResourceName = "shutdown-computevm-my-vm" 
 ResourceType = "Microsoft.DevTestLab/schedules" 
 ResourceGroupName = "my-rg" 
 Force = $true 
}
 
New-AzureRmResource @newSchedule

This will create a new schedule for your existing Compute Virtual Machine.  Note that the ResourceName should be in the form of shutdown-compute-{vm name}, and make sure to fill in the $newSchedule object with your own values!

Thanks all, we hope to get this working again soon!


Comments (0)

Skip to main content