%3CLINGO-SUB%20id%3D%22lingo-sub-1593744%22%20slang%3D%22en-US%22%3EMaximize%20cost%20control%20with%20new%20auto-shutdown%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1593744%22%20slang%3D%22en-US%22%3E%3CP%3EI%E2%80%99m%20excited%20to%20announce%20new%20cost%20control%20features%20that%20will%20proactively%20prevent%20waste%20of%20virtual%20machine%20usage%20hours%20inside%20the%20labs!%20The%20combination%20of%20these%20three%20automatic%20shutdown%20and%20disconnect%20features%20will%20now%20catch%20most%20of%20the%20cases%20where%20users%20accidentally%20leave%20their%20virtual%20machines%20running%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jieun-msft_0-1597684813381.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212770iF36D8EAF04C9DB48%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22jieun-msft_0-1597684813381.png%22%20alt%3D%22jieun-msft_0-1597684813381.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThese%20settings%20can%20be%20configured%20at%20both%20the%20lab%20account%20level%20and%20the%20lab%20level.%20If%20the%20settings%20are%20enabled%20at%20the%20lab%20account%20level%2C%20they%20will%20be%20applied%20to%20all%20labs%20within%20the%20lab%20account.%20Any%20changes%20to%20the%20settings%20made%20at%20the%20lab%20level%20will%20override%20the%20lab%20account%20level%20configuration.%20For%20all%20new%20lab%20accounts%2C%20these%20settings%20will%20be%20turned%20on%20by%20default.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20look%20at%20what%20each%20setting%20does%20in%20detail.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20Automatically%20disconnect%20users%20from%20virtual%20machines%20that%20the%20OS%20deems%20idle%20(Windows-only)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20setting%20that%20is%20only%20available%20for%20Windows%20virtual%20machines.%20When%20the%20setting%20is%20turned%20on%2C%20any%20machines%20in%20the%20lab%2C%20including%20the%20template%20virtual%20machine%2C%20will%20automatically%20disconnect%20the%20user%20when%20the%20Windows%20OS%20deems%20the%20session%20to%20be%20idle.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fwin32%2Ftaskschd%2Ftask-idle-conditions%23detecting-the-idle-state%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EWindows%20OS%E2%80%99s%20definition%20of%20idle%3C%2FA%3E%20uses%20two%20criteria%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUser%20absence%20%E2%80%93%20no%20keyboard%20or%20mouse%20input%3C%2FLI%3E%0A%3CLI%3ELack%20of%20resource%20consumption%20%E2%80%93%20all%20the%20processors%20and%20all%20the%20disks%20were%20idle%20for%20a%20certain%20%25%20of%20time%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EUsers%20will%20see%20a%20message%20like%20this%20inside%20the%20virtual%20machines%20before%20they%20are%20disconnected%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jieun-msft_1-1597684813385.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212769i7DA310B13192A9FB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22jieun-msft_1-1597684813385.png%22%20alt%3D%22jieun-msft_1-1597684813385.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%20%3CSTRONG%3Ethe%20virtual%20machine%20is%20still%20running%20when%20the%20user%20is%20disconnected.%20%3C%2FSTRONG%3EIf%20the%20user%20reconnects%20to%20the%20virtual%20machine%20by%20signing%20in%2C%20windows%20or%20files%20that%20were%20open%20or%20unsaved%20work%20previous%20to%20the%20disconnect%20will%20still%20be%20there.%20In%20this%20state%2C%20%3CSTRONG%3Ebecause%20the%20virtual%20machine%20is%20running%2C%20it%20still%20counts%20as%20active%20and%20accrues%20cost.%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ETo%20automatically%20shut%20down%20the%20idle%20Windows%20virtual%20machines%20that%20are%20disconnected%2C%20use%20the%20combination%20of%20%E2%80%9CDisconnect%20users%20when%20virtual%20machines%20are%20idle%E2%80%9D%20and%20%E2%80%9CShut%20down%20virtual%20machines%20when%20users%20disconnect%E2%80%9D%20settings.%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20if%20you%20configure%20the%20settings%20as%20follows%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDisconnect%20users%20when%20virtual%20machines%20are%20idle%20%E2%80%93%2015%20minutes%20after%20idle%20state%20is%20detected%3C%2FLI%3E%0A%3CLI%3EShut%20down%20virtual%20machines%20when%20users%20disconnect%E2%80%9D%20%E2%80%93%205%20minutes%20after%20user%20disconnects%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20Windows%20virtual%20machines%20will%20automatically%20shutdown%2020%20minutes%20after%20the%20user%20stops%20using%20them.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jieun-msft_2-1597684813399.png%22%20style%3D%22width%3A%20847px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212771iF9D8CAE6B7382B84%2Fimage-dimensions%2F847x163%3Fv%3D1.0%22%20width%3D%22847%22%20height%3D%22163%22%20title%3D%22jieun-msft_2-1597684813399.png%22%20alt%3D%22jieun-msft_2-1597684813399.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2.%20Automatically%20shut%20down%20virtual%20machines%20when%20users%20disconnect%20(Windows%20%26amp%3B%20Linux)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20setting%20now%20supports%20both%20Windows%20and%20Linux%20virtual%20machines.%20When%20this%20setting%20is%20on%2C%20automatic%20shutdown%20will%20occur%20when%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFor%20Windows%2C%20Remote%20Desktop%20(RDP)%20connection%20is%20disconnected%3C%2FLI%3E%0A%3CLI%3EFor%20Linux%2C%20SSH%20connection%20is%20disconnected%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20feature%20utilizes%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fextensions%2Fdiagnostics-linux%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELinux%20Diagnostic%20Extension%3C%2FA%3E%20and%20%3CSTRONG%3Eis%20available%20for%20only%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fextensions%2Fdiagnostics-linux%23supported-linux-distributions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Especific%20distributions%20and%20versions%20of%20Linux%3C%2FA%3E%20that%20the%20Linux%20Diagnostic%20Extension%20supports.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20specify%20how%20long%20the%20virtual%20machines%20should%20wait%20for%20the%20user%20to%20reconnect%20before%20automatically%20shutting%20down.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E3.%20Automatically%20shut%20down%20virtual%20machines%20that%20are%20started%20but%20users%20don%E2%80%99t%20connect%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EInside%20a%20lab%2C%20a%20user%20might%20start%20a%20virtual%20machine%20but%20never%20connect%20to%20it.%20For%20example%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EA%20schedule%20in%20the%20lab%20starts%20all%20virtual%20machines%20for%20a%20class%20session%2C%20but%20some%20students%20do%20not%20show%20up%20and%20don%E2%80%99t%20connect%20to%20their%20machines.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EA%20user%20starts%20a%20virtual%20machine%2C%20but%20forgets%20to%20connect.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20%E2%80%9CShut%20down%20virtual%20machines%20when%20users%20do%20not%20connect%E2%80%9D%20setting%20will%20catch%20these%20cases%20and%20automatically%20shut%20down%20the%20virtual%20machines.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E----%3C%2FP%3E%0A%3CP%3EPlease%20enable%20these%20settings%20to%20minimize%20waste%20in%20your%20labs.%20I'm%20looking%20forward%20to%20hearing%20any%20feedback%20or%20questions%20you%20have.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1593744%22%20slang%3D%22en-US%22%3E%3CP%3EI%E2%80%99m%20excited%20to%20announce%20new%20cost%20control%20features%20that%20will%20proactively%20prevent%20waste%20of%20virtual%20machine%20usage%20hours%20inside%20the%20labs!%20The%20combination%20of%20these%20three%20automatic%20shutdown%20and%20disconnect%20features%20will%20now%20catch%20most%20of%20the%20cases%20where%20users%20accidentally%20leave%20their%20virtual%20machines%20running.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1593744%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELab%20Services%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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!