Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6769b9a

Browse files
committedMar 12, 2022
another article
1 parent 830490b commit 6769b9a

File tree

7 files changed

+47
-38
lines changed

7 files changed

+47
-38
lines changed
 
Lines changed: 47 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,72 @@
11
---
2-
title: Delete a lab or VM in a lab
3-
description: This article shows you how to delete a lab or delete a VM in a lab using the Azure portal(Azure DevTest Labs).
2+
title: Delete a lab virtual machine or a lab
3+
description: Learn how to delete a virtual machine from a lab or delete a lab in Azure DevTest Labs.
44
ms.topic: how-to
5-
ms.date: 01/24/2020
5+
ms.date: 03/11/2022
66
---
77

8-
# Delete a lab or VM in a lab in Azure DevTest Labs
9-
This article shows you how to delete a lab or VM in a lab.
8+
# Delete a lab VM or lab in Azure DevTest Labs
109

11-
## Delete a lab
12-
When you delete a DevTest Labs instance from a resource group, the DevTest Labs service performs the following actions:
10+
This article shows you how to delete a virtual machine (VM) from a lab or delete a lab in Azure DevTest Labs.
11+
12+
## Delete a lab VM
13+
14+
When you create a lab VM, 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:
15+
16+
- Any resources you manually created in the VM's resource group.
17+
- The VM's key vault in the lab's resource group.
18+
- The 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.
19+
20+
To delete a VM from a lab:
1321

14-
- All the resources that were automatically created at the time of lab creation are automatically deleted. The resource group itself is not deleted. If you had manually created any resources this resource group, the service doesn't delete them.
15-
- All VMs in the lab and resource groups associated with these VMs are automatically deleted. When you create a VM in a lab, the service creates resources (disk, network interface, public IP address, etc.) for the VM in a separate resource group. However, if you manually create any additional resources in these resource groups, the DevTest Labs service does not delete those resources and the resource group.
22+
1. On the lab's **Overview** page in the Azure portal, find the VM you want to delete in the list under **My virtual machines**.
1623

17-
To delete a lab, do the following actions:
24+
1. Either:
1825

19-
1. Sign in to the [Azure portal](https://portal.azure.com).
20-
2. Select **All resource** from menu on the left, select **DevTest Labs** for the type of service, and select the lab.
26+
- Select the **More options** ellipse **...** next to the VM, and select **Delete** from the context menu.
27+
![Screenshot of Delete selected on the V M's context menu on the lab Overview page.](media/devtest-lab-delete-lab-vm/delete-vm-menu-in-list.png)
2128

22-
![Select your lab](media/devtest-lab-delete-lab-vm/select-lab.png)
23-
3. On the **DevTest Lab** page, click **Delete** on the toolbar.
29+
or
2430

25-
![Delete button](media/devtest-lab-delete-lab-vm/delete-button.png)
26-
4. On the **Confirmation** page, enter the **name** of your lab, and select **Delete**.
31+
- Select the VM name, and on the VM's **Overview** page, select **Delete** from the top menu.
32+
![Screenshot of the Delete button on the V M Overview page.](media/devtest-lab-delete-lab-vm/delete-from-vm-page.png)
2733

28-
![Confirm](media/devtest-lab-delete-lab-vm/confirm-delete.png)
29-
5. To see the status of the operation, select **Notifications** icon (Bell).
34+
1. On the **Are you sure you want to delete it?** page, select **Delete**.
3035

31-
![Notifications](media/devtest-lab-delete-lab-vm/delete-status.png)
36+
![Screenshot of the V M deletion confirmation page.](media/devtest-lab-delete-lab-vm/select-lab.png)
3237

33-
34-
## Delete a VM in a lab
35-
If I delete a VM in a lab, some of the resources (not all) that were created at the time of lab creation are deleted. The following resources are not deleted:
38+
1. To check deletion status, select the **Notifications** icon on the Azure menu bar.
3639

37-
- Key vault in the main resource group
38-
- Availability set, load balancer, public IP address in the VM resource group. These resources are shared by multiple VMs in a resource group.
40+
## Delete a lab
41+
42+
When you delete a lab from a resource group, DevTest Labs automatically deletes:
43+
44+
- All VMs in the lab.
45+
- All resource groups associated with those VMs.
46+
- All resources that DevTest Labs automatically created during lab creation.
3947

40-
Virtual machine, network interface, and disk associated with the VM are deleted.
48+
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.
4149

42-
To delete a VM in a lab, do the following actions:
50+
> [!NOTE]
51+
> 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.
4352
44-
1. Sign in to the [Azure portal](https://portal.azure.com).
45-
2. Select **All resource** from menu on the left, select **DevTest Labs** for the type of service, and select the lab.
53+
To delete a lab:
4654

47-
![Select your lab](media/devtest-lab-delete-lab-vm/select-lab.png)
48-
3. Select **... (ellipsis)** for the VM in the list of VMs, and select **Delete**.
55+
1. On the lab's **Overview** page in the Azure portal, select **Delete** from the top toolbar.
4956

50-
![Delete VM in menu](media/devtest-lab-delete-lab-vm/delete-vm-menu-in-list.png)
51-
4. On the **confirmation** dialog box, select **Ok**.
52-
5. To see the status of the operation, select **Notifications** icon (Bell).
57+
![Screenshot of the Delete button on the lab Overview page.](media/devtest-lab-delete-lab-vm/delete-button.png)
5358

54-
To delete a VM from the **Virtual Machine page**, select **Delete** from the toolbar as shown in the following image:
59+
1. On the **Are you sure you want to delete it?** page, under **Type the lab name**, type the lab name, and then select **Delete**.
5560

56-
![Delete VM from VM page](media/devtest-lab-delete-lab-vm/delete-from-vm-page.png)
61+
![Screenshot of the lab deletion confirmation page.](media/devtest-lab-delete-lab-vm/select-lab.png)
5762

63+
1. To check deletion status, select the **Notifications** icon on the Azure menu bar.
64+
65+
![Screenshot of the Notifications icon on the Azure menu bar.](media/devtest-lab-delete-lab-vm/delete-status.png)
5866

5967
## Next steps
60-
If you want to create a lab, see the following articles:
6168

62-
- [Create a lab](devtest-lab-create-lab.md)
63-
- [Add a VM to the lab](devtest-lab-add-vm.md)
69+
- [Attach and detach data disks for lab VMs](devtest-lab-attach-detach-data-disk.md)
70+
- [Export or delete personal data](personal-data-delete-export.md)
71+
- [Move a lab to another region](how-to-move-labs.md)
72+
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.