Way to change auto-shutdown settings programmatically per-instance (rather than lab wide)
Currently you can set the auto-shutdown settings on a lab-wide basis either manually or in an ARM template that creates a DevTest Labs instance. However, when you create environments using an ARM template base which creates multiple VM's, they all have the auto-shutdown settings of the DevTest Lab.
If the Lab policy allows the user to change the Auto-Shutdown settings, then you can manually change them on a per-VM basis through the UI, but there doesn't appear to be a way of changing those settings programmatically (either in the ARM template that creates the environment or through PowerShell after creation).
Since we have users in multiple time-zones all using the same Lab, currently they all have to use the latest possible time for auto-shutdown to prevent labs shutting down during the day (using 20:00 PST means my users in Delhi have labs shut down at 9:30AM!!, any earlier and my west coast US users complain).
It would be great if we could specify in the environment base ARM template a specific shutdown time & time-zone for that environment instance or as a VM setting, or at least have a way of setting the time and time-zone for auto-shutdown on a per-VM basis through PowerShell.
Thanks for the feedback.
You can use the following Rest API to update VM schedules: https://docs.microsoft.com/en-us/rest/api/dtl/virtualmachineschedules
Does this help?