Guide to controlling Windows Shutdown behavior
Published Apr 07 2020 03:44 PM 1,372 Views
Microsoft

Azure Lab Services provides several cost control mechanisms to ensure that Windows virtual machines (VMs) are not running unexpectedly:

Even with these cost controls, there are situations where a Windows virtual machine (VM) may unexpectedly continue to run; and as a result, deduct from the student's quota:

  • (Remote Desktop Protocol) RDP window is left open

    When a student connects to their machine using RDP, they may inadvertently leave the RDP window open. As long as the RDP window remains open, the automatic shutdown on disconnect setting will never take effect since it is only triggered after the RDP session is disconnected.

  • Windows shutdown command is used to turn off the VM

    A student may use Windows shutdown command, or other shutdown mechanisms provided within Windows, to turn off their virtual machine instead of using Azure Lab Services' stop button. When this happens, from the perspective of Azure Lab Services, the VM is still being used.

To help you prevent these situations from happening, we put together a guide that provides steps to automatically shutdown an idle Windows virtual machine and remove the Windows shutdown command from the Start menu.

 

Guide to controlling Windows Shutdown behavior in Azure Lab Services. 

 

Note:

A virtual machine may also unexpectedly deduct from the quota when the student starts their machine, but never actually connects to it using RDP. The guide does not currently address this scenario. Instead, students should be reminded to immediately connect to their machine using RDP after they start it; or, they should stop the machine. 

 

Please give it a read and let us know if you have any feedback or questions.

 

- Lab Services Team

Version history
Last update:
‎Apr 07 2020 03:44 PM
Updated by: