You can use Azure automation to start/stop VM during off hours.
Please refer to this document and let me know if you have any questions.
Assign a policy to enforce a condition for existing/new VMs that should shut-down by 7 PM and on by 10 AM
Hi Team,
I would like to add a policy which is related to Virtual Machines that should shut down the all VMs at 7 PM and on by 10 AM Daily on Weekdays.
Thanks in advance.
Regards,
Venu Sunkara
4 answers
Sort by: Most helpful
-
KarishmaTiwari-MSFT 20,552 Reputation points Microsoft Employee
2019-12-11T01:45:52.317+00:00 -
Anonymous
2019-12-11T02:49:11.02+00:00 What are those lazy hours to work :) :) :)
No but seriously do you mind if i ask why you want to shut them down overnight, i am just curious.
Thanks :P
-
Vaibhav Chaudhari 38,811 Reputation points
2019-12-12T07:38:16.587+00:00 I don't see any Azure policy for this requirement. However there is Auto turn off option, but again auto start option is not available.
Azure Virtual Machine auto-shutdown
Also there was similar feedback for this requirement where MS suggests to use Automation option.
Ability to turn ON and OFF virtual machines based on a schedule
-
Nadeim joo 11 Reputation points
2020-08-10T07:56:02.64+00:00 You need to associate Tags with VM and create an automation process that will look for these tags and their values for shutting down VM's and restarting them again.