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/lab-services/how-to-manage-vm-pool.md
+36-29Lines changed: 36 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,34 +12,28 @@ ms.date: 07/04/2023
12
12
13
13
# Manage a lab virtual machine pool in Azure Lab Services
14
14
15
-
The lab virtual machine pool represents the set of lab virtual machines (VMs) that are available for lab users to connect to. The lab VM creation starts when you publish a lab template, or when you update the lab capacity. Learn how to change the capacity of the lab and modify the number of lab virtual machines, or manage the state of individual lab VMs.
15
+
Learn how you can manage the pool of lab virtual machines (VMs) in Azure Lab Services. Change the capacity of the lab to add or remove lab VMs, connect to a lab, or manage the state of individual lab VMs.
16
+
17
+
The lab virtual machine pool represents the set of lab VMs that are available for lab users to connect to. The lab VM creation starts when you publish a lab template, or when you update the lab capacity.
16
18
17
19
When you synchronize the lab user list with an Azure AD group, or create a lab in Teams or Canvas, Azure Lab Services manages the lab VM pool automatically based on membership.
-**Unassigned**. The lab VM is not assigned to a lab user yet. The lab VM doesn't automatically start with the lab schedule.
29
32
-**Stopped**. The lab VM is turned off and not available for use.
30
33
-**Starting**. The lab VM is starting. It's not yet available for use.
31
34
-**Running**. The lab VM is running and is available for use.
32
35
-**Stopping**. The lab VM is stopping and not available for use.
33
36
34
-
> [!WARNING]
35
-
> When you start a lab VM, it doesn't affect the available [quota hours](./classroom-labs-concepts.md#quota) for the lab user. Make sure to stop all lab VMs manually or use a [schedule](how-to-create-schedules.md) to avoid unexpected costs.
When you synchronize the lab user list with an Azure AD group, or create a lab in Teams or Canvas, Azure Lab Services manages the lab VM pool automatically based on membership. When you add or remove a user, the lab capacity increases or decreases accordingly. Lab users are also automatically registered and assigned to their lab VM.
@@ -62,7 +56,7 @@ To manually start all lab VMs:
62
56
63
57
1. Select the **Start all** button at the top of the page.
64
58
65
-
:::image type="content" source="./media/how-to-set-virtual-machine-passwords/start-all-vms-button.png" alt-text="Screenshot that shows the Virtual machine pool page and the Start all button is highlighted.":::
59
+
:::image type="content" source="./media/how-to-manage-vm-pool/start-all-vms-button.png" alt-text="Screenshot that shows the Virtual machine pool page and the Start all button is highlighted.":::
66
60
67
61
To start individual lab VMs:
68
62
@@ -74,6 +68,9 @@ To start individual lab VMs:
74
68
75
69
1. Alternately, select multiple VMs using the checks to the left of the **Name** column, and then select the **Start** button at the top of the page.
76
70
71
+
> [!NOTE]
72
+
> When you start a lab VM, it doesn't affect the available [quota hours](./classroom-labs-concepts.md#quota) for the lab user. Make sure to stop all lab VMs manually or use a [schedule](how-to-create-schedules.md) to avoid unexpected costs.
73
+
77
74
## Manually stop lab VMs
78
75
79
76
To manually stop all lab VMs:
@@ -82,7 +79,7 @@ To manually stop all lab VMs:
82
79
83
80
1. Select the **Stop all** button to stop all of the lab VMs.
84
81
85
-
:::image type="content" source="./media/how-to-set-virtual-machine-passwords/stop-all-vms-button.png" alt-text="Screenshot that shows the Virtual machine pool page and the Stop all button is highlighted.":::
82
+
:::image type="content" source="./media/how-to-manage-vm-pool/stop-all-vms-button.png" alt-text="Screenshot that shows the Virtual machine pool page and the Stop all button is highlighted.":::
86
83
87
84
To start individual lab VMs:
88
85
@@ -94,30 +91,40 @@ To start individual lab VMs:
94
91
95
92
1. Alternately, select multiple VMs using the checks to the left of the **Name** column, and then select the **Stop** button at the top of the page.
96
93
97
-
## Reset lab VMs
94
+
## Reimage lab VMs
98
95
99
-
When you reset a lab VM, Azure Lab Services shuts down the lab VM, deletes it, and recreates a new lab VM from the original template VM. You can think of a reset as a refresh of the entire lab VM.
96
+
When you reimage a lab VM, Azure Lab Services shuts down the lab VM, deletes it, and recreates a new lab VM from the original lab template. You can think of a reimage operation as a refresh of the entire VM.
100
97
101
98
> [!CAUTION]
102
-
> After you reset a lab VM, all the data that's saved on the OS disk (usually the C: drive on Windows), and the temporary disk (usually the D: drive on Windows), is lost. Learn how to [store the user data outside the lab VM](/azure/lab-services/troubleshoot-access-lab-vm#store-user-data-outside-the-lab-vm).
99
+
> After you reimage a lab VM, all the data that you saved on the OS disk (usually the C: drive on Windows), and the temporary disk (usually the D: drive on Windows), is lost. Learn how you can [store the user data outside the lab VM](./troubleshoot-access-lab-vm.md#store-user-data-outside-the-lab-vm).
103
100
104
-
To reset one or more lab VMs:
101
+
To reimage one or more lab VMs:
105
102
106
103
1. Go to the **Virtual machine pool** page for the lab.
107
104
108
-
1. Select **Reset** in the toolbar.
105
+
1. Select one or multiple VMs from the list, and then select **Reimage** in the toolbar.
106
+
107
+
:::image type="content" source="./media/how-to-manage-vm-pool/reset-vm-button.png" alt-text="Screenshot of virtual machine pool. Reset button is highlighted.":::
109
108
110
-
:::image type="content" source="./media/how-to-set-virtual-machine-passwords/reset-vm-button.png" alt-text="Screenshot of virtual machine pool. Reset button is highlighted.":::
109
+
1. On the **Reimage virtualmachine** dialog box, and then select **Reimage** to start the operation.
111
110
112
-
1. On the **Reset virtual machine(s)** dialog box, select **Reset**.
111
+
After the reimage operation finishes, the lab VMs are recreated from the lab template, and assigned to the lab users.
113
112
114
-
:::image type="content" source="./media/how-to-set-virtual-machine-passwords/reset-vms-dialog.png" alt-text="Screenshot of reset virtual machine confirmation dialog.":::
113
+
## Redeploy lab VMs
114
+
115
+
When you redeploy a lab VM, Azure Lab Services shuts down the lab VM, moves the lab VM to a new node in the Azure infrastructure, and then powers it back on. You can think of a redeploy operation as a refresh of the underlying VM for your lab.
116
+
117
+
All data that you saved in the [OS disk](/azure/virtual-machines/managed-disks-overview#os-disk) (usually the C: drive on Windows) of the VM is still available after the redeploy operation. Any data on the [temporary disk](/azure/virtual-machines/managed-disks-overview#temporary-disk) (usually the D: drive on Windows) is lost after a redeploy operation.
118
+
119
+
To redeploy one or more lab VMs:
120
+
121
+
1. Go to the **Virtual machine pool** page for the lab.
115
122
116
-
### Redeploy lab VMs
123
+
1. Select one or multiple VMs from the list, and then select **Redeploy** in the toolbar.
117
124
118
-
When you use [lab plans](./lab-services-whats-new.md), lab users can now redeploy their lab VM. This operation is labeled **Troubleshoot**in Azure Lab Services. When you redeploy a lab VM, Azure Lab Services will shut down the VM, move the VM to a new node within the Azure infrastructure, and then power it back on.
125
+
:::image type="content" source="./media/how-to-manage-vm-pool/redeploy-vm-button.png" alt-text="Screenshot that shows the virtual machine pool in the Lab Services web portal, highlighting the Redeploy button.":::
119
126
120
-
Learn how [lab users can redeploy their lab VM](./how-to-reset-and-redeploy-vm.md#redeploy-a-lab-vm).
127
+
1. On the **Redeploy virtual machine** dialog box, select **Redeploy** to start the redeployment.
0 commit comments