title | description | ms.topic | ms.author | author | ms.date |
---|---|---|---|---|---|
Delete a lab virtual machine or a lab |
Learn how to delete a virtual machine from a lab or delete a lab in Azure DevTest Labs. |
how-to |
rosemalcolm |
RoseHJM |
03/14/2022 |
This article shows you how to delete a virtual machine (VM) from a lab or delete a lab in Azure DevTest Labs.
When you create a VM in a lab, DevTest Labs automatically creates resources for the VM, like a disk, network interface, and public IP address, in a separate resource group. Deleting the VM deletes most of the resources created at VM creation, including the VM, network interface, and disk. However, deleting the VM doesn't delete:
- Any resources you manually created in the VM's resource group.
- The VM's key vault in the lab's resource group.
- Any availability set, load balancer, or public IP address in the VM's resource group. These resources are shared by multiple VMs in a resource group.
To delete a VM from a lab:
-
On the lab's Overview page in the Azure portal, find the VM you want to delete in the list under My virtual machines.
-
Either:
or
-
On the Are you sure you want to delete it? page, select Delete.
-
To check deletion status, select the Notifications icon on the Azure menu bar.
When you delete a lab from a resource group, DevTest Labs automatically deletes:
- All VMs in the lab.
- All resource groups associated with those VMs.
- All resources that DevTest Labs automatically created during lab creation.
DevTest Labs doesn't delete the lab's resource group itself, and doesn't delete any resources you manually created in the lab's resource group.
Note
If you want to manually delete the lab's resource group, you must delete the lab first. You can't delete a resource group that has a lab in it.
To delete a lab:
-
On the lab's Overview page in the Azure portal, select Delete from the top toolbar.
-
On the Are you sure you want to delete it? page, under Type the lab name, type the lab name, and then select Delete.
-
To check deletion status, select the Notifications icon on the Azure menu bar.