You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-attach-detach-data-disk.md
+18-20Lines changed: 18 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: Attach & detach data disks for lab VMs
3
-
description: Learn how to attach or detach a data disk for a lab virtual machine in Azure DevTest Labs.
2
+
title: Attach or detach data disks for lab VMs
3
+
description: Learn how to attach or detach a data disk for a lab virtual machine (VM) in Azure DevTest Labs.
4
4
ms.topic: how-to
5
5
ms.author: rosemalcolm
6
6
author: RoseHJM
7
-
ms.date: 09/30/2023
7
+
ms.date: 03/14/2025
8
8
ms.custom: UpdateFrequency2
9
9
---
10
10
11
-
# Attach or detach a data disk for a lab virtual machine in Azure DevTest Labs
11
+
# Attach or detach a data disk for a lab VM in Azure DevTest Labs
12
12
13
-
This article explains how to attach and detach a lab virtual machine (VM) data disk in Azure DevTest Labs. You can create, attach, detach, and reattach multiple [data disks](/azure/virtual-machines/managed-disks-overview) for lab VMs that you own. This functionality is useful for managing storage or software separately from individual VMs.
13
+
This article explains how to attach and detach a lab virtual machine (VM) data disk in Azure DevTest Labs. You can create, attach, detach, and reattach multiple [data disks](/azure/virtual-machines/managed-disks-overview) for your lab VMs. Data disks let you manage storage or software separately from individual VMs.
14
14
15
15
## Prerequisites
16
16
@@ -20,18 +20,18 @@ To attach or detach a data disk, you need to own the lab VM, and the VM must be
20
20
21
21
Follow these steps to create and attach a new managed data disk for a DevTest Labs VM.
22
22
23
-
1.Select your VM from the **My virtual machines** list on the lab **Overview** page.
23
+
1.In the Azure portal, select your VM from the **My virtual machines** list on your lab **Overview** page.
24
24
25
25
1. On the VM **Overview** page, select **Disks** under **Settings** in the left navigation.
26
26
27
27
1. On the **Disks** page, select **Attach new**.
28
28
29
29
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-attach-new.png" alt-text="Screenshot of Attach new on the V M's Disk page.":::
30
30
31
-
1.Fill out the **Attach new disk**form as follows:
31
+
1.On the **Attach new disk**page:
32
32
33
33
- For **Name**, enter a unique name.
34
-
- For **Disk type**, select a [disk type](/azure/virtual-machines/disks-types) from the drop-down list.
34
+
- For **Disk type**, select a [disk type](/azure/virtual-machines/disks-types) from the dropdown list.
35
35
- For **Size (GiB)**, enter a size in gigabytes.
36
36
37
37
1. Select **OK**.
@@ -46,13 +46,13 @@ Follow these steps to create and attach a new managed data disk for a DevTest La
46
46
47
47
Follow these steps to attach an existing available data disk to a running VM.
48
48
49
-
1.Select your VM from the **My virtual machines** list on the lab **Overview** page.
49
+
1.In the Azure portal, select your VM from the **My virtual machines** list on the lab **Overview** page.
50
50
51
51
1. On the VM **Overview** page, select **Disks** under **Settings** in the left navigation.
52
52
53
53
1. On the **Disks** page, select **Attach existing**.
54
54
55
-
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-attach-existing-button.png" alt-text="Screenshot of Attach existing on the V M's Disk page.":::
55
+
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-attach-existing-button.png" alt-text="Screenshot of Attach existing on the VM's Disk page.":::
56
56
57
57
1. On the **Attach existing disk** page, select a disk, and then select **OK**.
58
58
@@ -74,30 +74,28 @@ Follow these steps to detach an attached data disk from a running VM.
74
74
75
75
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-button.png" alt-text="Screenshot of selecting a data disk to detach.":::
76
76
77
-
1. On the data disk's page, select **Detach**, and then select **OK**.
77
+
1. On the data disk's page, select **Detach**, and at **Are you sure you want to detach it**, select **OK**.
78
78
79
79
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-data-disk-2.png" alt-text="Screenshot showing Detach on the Data disk page.":::
80
80
81
81
The disk is detached, and is available to reattach to this or another VM.
82
82
83
83
### Detach or delete a data disk on the lab management page
84
84
85
-
You can also detach or delete a data disk without navigating to the VM's page.
85
+
You can also detach or delete a data disk from the lab's page.
86
86
87
-
1.In the left navigation for your lab's**Overview** page, select **My data disks** under **My Lab**.
87
+
1.On the lab **Overview** page in the Azure portal, select **My data disks** under **My Lab** from the left navigation.
88
88
89
89
1. On the **My data disks** page, either:
90
90
91
-
- Select the disk you want to detach, and then on the data disk's page, select **Detach** and then select **OK**.
92
-
93
-
or
94
-
95
91
- Select the ellipsis (**...**) next to the disk you want to detach, select **Detach** from the context menu, and then select **Yes**.
96
92
97
-
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-data-disk.png" alt-text="Screenshot of detaching a data disk from the listing's context menu.":::
93
+
- Or, select the disk name, and on the disk's page, select **Detach**, and then select **OK**.
94
+
95
+
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-data-disk.png" alt-text="Screenshot of detaching a data disk from the listing's context menu.":::
98
96
99
-
You can also delete a detached data disk, by selecting **Delete** from the context menu or from the data disk page. When you delete a data disk, it is removed from storage and can't be reattached anymore.
97
+
To delete a detached data disk, select **Delete** from the context menu on the **My data disks** page, or from the disk's page. Deleting a data disk removes it from storage, and you can't reattach it anymore.
100
98
101
-
## Next steps
99
+
## Related content
102
100
103
101
For information about transferring data disks for claimable lab VMs, see [Transfer the data disk](devtest-lab-add-claimable-vm.md#transfer-the-data-disk).
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-concepts.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ ms.author: rosemalcolm
6
6
author: RoseHJM
7
7
ms.date: 03/14/2025
8
8
ms.custom: UpdateFrequency2
9
+
10
+
#customer intent: As a lab user or administrator, I want to understand basic DevTest Labs concepts so I know how I can create, manage, or use labs, VMs, environments, and templates.
[Azure role-based access control (Azure RBAC)](/azure/role-based-access-control/overview) defines DevTest Labs access and roles. DevTest Labs has three roles that define lab member permissions: **Owner**, **Contributor**, and **DevTest Labs User**. For more information about managing access and roles, see [Add lab owners, contributors, and users](devtest-lab-add-devtest-user.md).
19
+
[Azure role-based access control (Azure RBAC)](/azure/role-based-access-control/overview) defines DevTest Labs access and roles. DevTest Labs has three roles that define lab member permissions: **Owner**, **Contributor**, and **DevTest Labs User**.
18
20
19
-
- Lab **Owners** can do all lab tasks, including creating labs and managing users.
21
+
- Lab **Owners** can do all lab tasks, including creating labs and managing policies and users. For more information about managing user access and roles, see [Add lab owners, contributors, and users](devtest-lab-add-devtest-user.md).
20
22
21
-
A lab Owner must have at least Contributor rights in the Azure subscription the lab is in. Azure subscription Owners have access to all resources and user assignments in their subscriptions, so automatically inherit the Owner role for labs.
23
+
A lab Owner must have at least Contributor rights in the Azure subscription the lab is in. Azure subscription Owners have access to all resources and user assignments in their subscriptions, so they automatically inherit the lab Owner role.
22
24
23
25
Lab Owners can also create and assign custom DevTest Labs roles. For more information, see [Grant user permissions to specific lab policies](devtest-lab-grant-user-permissions-to-specific-lab-policies.md).
24
26
25
-
- Lab **Contributors** can do everything that Owners can, except manage users and roles.
27
+
- Lab **Contributors** can do everything that Owners can, such as create and configure labs and policies, but can't assign or manage users and roles.
26
28
27
-
-**DevTest Labs Users** can view all lab resources and policies and can create and modify their own VMs and environments, within policy restrictions.
29
+
-**DevTest Labs Users** can view all lab resources and policies and can create and modify their own VMs and environments, within policy restrictions such as number of VMs per user.
28
30
29
31
DevTest Labs Users can't modify lab policies, or change any other users' VMs. DevTest Labs Users automatically have Owner permissions on their own VMs.
30
32
31
33
## Labs
32
34
33
35
A DevTest Labs lab is the infrastructure that encompasses a group of resources such as VMs. Lab administrators can:
34
36
35
-
- Add and configure users.
37
+
- Add and configure users (Owners only).
36
38
- Create ready-made VMs for lab users to claim and use.
37
39
- Connect artifact and template repositories to the lab.
38
40
- Let users create and configure their own lab VMs and environments.
0 commit comments