Configure automatic shutdown of VMs for a lab plan
You can enable several auto-shutdown cost control features to avoid extra costs when the virtual machines aren't being used.
- Disconnect idle virtual machines.
- Shutdown virtual machines when users disconnect
- Shutdown virtual machines when users don't connect
The disconnect idle virtual machines has two settings. Both settings use a VM extension to detect idle.
- Detect idle based on user absence. Idle detection examines only mouse/keyboard input (user absence).
- Detect idle based on user absence and resource usage. Idle detection examines both mouse/keyboard input (user absence) and disk/CPU usage (resource usage). By selecting resource usage, that is, disk/CPU usage, operations such as long-running queries are accounted for.
Review more details about the auto-shutdown features in the Maximize cost control with auto-shutdown settings section.
Enable automatic shutdown
In the Azure portal, navigate to the Lab Plan page.
Select Labs settings on the left menu.
Select the auto-shutdown setting(s) that is appropriate for your scenario.
The setting(s) apply to all the labs associated with the lab plan. A lab creator (educator) can override this setting at the lab level. The change to this setting at the lab plan will only affect labs that are created after the change is made.
To disable the setting(s), uncheck the checkbox(s) on this page.
To learn about how a lab owner can configure or override this setting at the lab level, see Configure automatic shutdown of VMs for a lab
Submit and view feedback for