I shut down an Azure Labs Services VM running Ubuntu using the Linux 'shutdown' command:
shutdown -h now
After a suitable passage of time, the VM appears to be gone and it no longer responds to SSH login attempts; however, the Azure Labs Services UI still shows it as running:
I also suspect that, though this VM has shut down, and its guest OS not running, that it is continuing to eat up quota hours despite being off.
My suspicion is based on the fact that I shut the VM down in this fashion a few days ago, and came back today to find all of my quota hours depleted, when I'm certain I wasn't logged in and using it for nearly that many hours.
However, the 'auto shutdown on disconnect' setting is not available for all OSes and, unfortunately, the DSVM is one of the unsupported Oses. If this case, you always want to shutdown from the Azure Lab Services portal.