Maximize cost control with new auto-shutdown settings
Published Aug 17 2020 10:27 AM 2,207 Views
Microsoft

I’m excited to announce new cost control features that will proactively prevent waste of virtual machine usage hours inside the labs! The combination of these three automatic shutdown and disconnect features will now catch most of the cases where users accidentally leave their virtual machines running:

jieun-msft_0-1597684813381.png

These settings can be configured at both the lab account level and the lab level. If the settings are enabled at the lab account level, they will be applied to all labs within the lab account. Any changes to the settings made at the lab level will override the lab account level configuration. For all new lab accounts, these settings will be turned on by default.

 

Let’s look at what each setting does in detail.

 

1. Automatically disconnect users from virtual machines that the OS deems idle (Windows-only)

This is a setting that is only available for Windows virtual machines. When the setting is turned on, any machines in the lab, including the template virtual machine, will automatically disconnect the user when the Windows OS deems the session to be idle. Windows OS’s definition of idle uses two criteria:

  • User absence – no keyboard or mouse input
  • Lack of resource consumption – all the processors and all the disks were idle for a certain % of time

Users will see a message like this inside the virtual machines before they are disconnected:

jieun-msft_1-1597684813385.png

 

Please note that the virtual machine is still running when the user is disconnected. If the user reconnects to the virtual machine by signing in, windows or files that were open or unsaved work previous to the disconnect will still be there. In this state, because the virtual machine is running, it still counts as active and accrues cost.

To automatically shut down the idle Windows virtual machines that are disconnected, use the combination of “Disconnect users when virtual machines are idle” and “Shut down virtual machines when users disconnect” settings.

For example, if you configure the settings as follows:

  • Disconnect users when virtual machines are idle – 15 minutes after idle state is detected
  • Shut down virtual machines when users disconnect” – 5 minutes after user disconnects

The Windows virtual machines will automatically shutdown 20 minutes after the user stops using them.

jieun-msft_2-1597684813399.png

2. Automatically shut down virtual machines when users disconnect (Windows & Linux)

This setting now supports both Windows and Linux virtual machines. When this setting is on, automatic shutdown will occur when:

  • For Windows, Remote Desktop (RDP) connection is disconnected
  • For Linux, SSH connection is disconnected

This feature utilizes the Linux Diagnostic Extension and is available for only the specific distributions and versions of Linux that the Linux Diagnostic Extension supports. 

You can specify how long the virtual machines should wait for the user to reconnect before automatically shutting down.

 

3. Automatically shut down virtual machines that are started but users don’t connect

Inside a lab, a user might start a virtual machine but never connect to it. For example:

  • A schedule in the lab starts all virtual machines for a class session, but some students do not show up and don’t connect to their machines. 
  • A user starts a virtual machine, but forgets to connect.

The “Shut down virtual machines when users do not connect” setting will catch these cases and automatically shut down the virtual machines.  

 

----

Please enable these settings to minimize waste in your labs. I'm looking forward to hearing any feedback or questions you have.

 

Thank you!

 

Version history
Last update:
‎Aug 17 2020 10:27 AM
Updated by: