Configure automatic shutdown of VMs for a lab

This article shows you how you can configure automatic shutdown of VMs for a lab.

You can enable several auto-shutdown cost control features to proactively prevent additional costs when the virtual machines are not being actively used. The combination of the following three automatic shutdown and disconnect features catches most of the cases where users accidentally leave their virtual machines running:  

  • Automatically disconnect users from virtual machines that the OS deems idle.
  • Automatically shut down virtual machines when users disconnect.
  • Automatically shut down virtual machines that are started but users don't connect.

Review more details about the auto-shutdown features in the Maximize cost control with auto-shutdown settings section.

A lab account administrator can configure this setting for the lab account in which you create labs. For more information, see Configure automatic shutdown of VMs for a lab account. As a lab owner, you can override the setting when creating a lab or after the lab is created.

Configure for the lab level

You can configure the auto-shutdown setting in the Azure Lab Services.

  • when creating a lab (in Lab policies), or
  • after the lab is created (in Settings)

Configure at the time of lab creation

Make sure to review details about the auto-shutdown in the Maximize cost control with auto-shutdown settings section.

Warning

If you shutdown the Linux or Windows operating system (OS) on a VM before disconnecting an RDP session to the VM, the autoshutdown feature will not work properly.

Next steps

Dashboard for labs