Hello, @Corner Bowl Software !
Why are my lab VMs shutting down in the middle of class?
I reached out to the Azure Lab Services team and there are a variety of possible causes, but in this case a lot of the symptoms that you mention point to Azure Lab's idle shutdown setting.
Disconnect idle virtual machines
is a setting under Shutdown and disconnect
under Lab Configuration
> Lab settings
. If a VM is idle, or if software or other network settings are blocking the heartbeat that Lab Services Idle Agent sends back to Lab Services, then Lab Services may think the VM is idle and initiate a shutdown.
Try disabling Disconnect idle virtual machines
to see if that resolves your issue. If not, let us know in the comments so we can continue troubleshooting.
"Disconnect idle virtual machines" under lab settings will shut down a VM if activity isn't detected:
Other things to help with troubleshooting:
- Is this a lab with lab accounts or lab plans?
- What are the automatic shutdown settings for the lab?
- Is the VM turning off randomly or at a specific time (like 5 minutes after start)?
- Is the lab using advanced networking?
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!