Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Azure VM gets deallocated by VS DevTest Lab

Here is a situation:

An Azure Windows 10 VM is working through a day and is being used via RDP without a problem, while suddenly RDP drops and RDP is no longer a mean to connect. Looking at Azure portal, in an Activity Log, one can see that the VM is deallocated and the Entity that started the action is VS DevTest Lab.

enter image description here

While I've been using some Azure Fluent API for .Net to test start and stop of VM, those tests never came up as being triggered by VS DevTest Lab.

Can someone explain what VS DevTest Lab mean when it comes to practically determining who triggered a VM deallocation? Thank you in advance.

like image 623
Maxim V. Pavlov Avatar asked Apr 03 '18 20:04

Maxim V. Pavlov


People also ask

Why is VM deallocated in Azure?

You can also deallocate a VM using an Azure CLI command, such as azure vm deallocate. Deallocating stops the VM and releases all the compute resources so you are no longer charged for the VM compute resources. However, all persistent disks remain, such as the operating system disk and the attached data disks.

What does deallocated mean in Azure?

Azure's Deallocated State When you stop a VM through Azure, rather than through the OS, it goes into a “Stopped (deallocated)” state. This means that any non-static public IPs will be released, but you'll also stop paying for the VM's compute costs.

What is DevTest labs in Azure?

Azure DevTest Labs is a service for easily creating, using, and managing infrastructure-as-a-service (IaaS) virtual machines (VMs) and platform-as-a-service (PaaS) environments in labs.

What is the difference between stopped and stopped deallocated in Azure?

Stopped (Deallocated): In this state, the instance is stopped through the management portal. This option is available at the bottom on the management portal. If you shut down the VM from here, it goes to the stopped (deallocated) state. Stopped (Deallocated) instance doesn't cost for VM compute hours.


1 Answers

I believe this is because in DevTest Labs you can have the auto-shutdown configured to save on expenses. Check to see if that is configured in the portal

enter image description here

like image 97
Micah_MSFT Avatar answered Dec 04 '22 20:12

Micah_MSFT