Skip to content

Commit bd8c7bf

Browse files
committed
Update manage VM pool for reimage/redeploy
1 parent b1daaf1 commit bd8c7bf

File tree

7 files changed

+36
-29
lines changed

7 files changed

+36
-29
lines changed

articles/lab-services/how-to-manage-vm-pool.md

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,28 @@ ms.date: 07/04/2023
1212

1313
# Manage a lab virtual machine pool in Azure Lab Services
1414

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.
1618

1719
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.
1820

19-
When you manage a lab VM pool, you can:
21+
## Prerequisites
22+
23+
[!INCLUDE [Azure subscription](./includes/lab-services-prerequisite-subscription.md)]
24+
[!INCLUDE [Create and manage labs](./includes/lab-services-prerequisite-create-lab.md)]
25+
[!INCLUDE [Existing lab plan](./includes/lab-services-prerequisite-lab-plan.md)]
2026

21-
- Start and stop all or selected lab VMs.
22-
- Reset a VM
23-
- Connect to a lab user's VM.
24-
- Change the lab capacity.
27+
## Lab VM states
2528

26-
Lab VMs can be in one of a few states.
29+
A lab VM can be in one of the following states:
2730

2831
- **Unassigned**. The lab VM is not assigned to a lab user yet. The lab VM doesn't automatically start with the lab schedule.
2932
- **Stopped**. The lab VM is turned off and not available for use.
3033
- **Starting**. The lab VM is starting. It's not yet available for use.
3134
- **Running**. The lab VM is running and is available for use.
3235
- **Stopping**. The lab VM is stopping and not available for use.
3336

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.
36-
37-
## Prerequisites
38-
39-
[!INCLUDE [Azure subscription](./includes/lab-services-prerequisite-subscription.md)]
40-
[!INCLUDE [Create and manage labs](./includes/lab-services-prerequisite-create-lab.md)]
41-
[!INCLUDE [Existing lab plan](./includes/lab-services-prerequisite-lab-plan.md)]
42-
4337
## Change lab capacity
4438

4539
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:
6256

6357
1. Select the **Start all** button at the top of the page.
6458

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.":::
6660

6761
To start individual lab VMs:
6862

@@ -74,6 +68,9 @@ To start individual lab VMs:
7468

7569
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.
7670

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+
7774
## Manually stop lab VMs
7875

7976
To manually stop all lab VMs:
@@ -82,7 +79,7 @@ To manually stop all lab VMs:
8279

8380
1. Select the **Stop all** button to stop all of the lab VMs.
8481

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.":::
8683

8784
To start individual lab VMs:
8885

@@ -94,30 +91,40 @@ To start individual lab VMs:
9491

9592
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.
9693

97-
## Reset lab VMs
94+
## Reimage lab VMs
9895

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.
10097

10198
> [!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).
103100
104-
To reset one or more lab VMs:
101+
To reimage one or more lab VMs:
105102

106103
1. Go to the **Virtual machine pool** page for the lab.
107104

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.":::
109108

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 virtual machine** dialog box, and then select **Reimage** to start the operation.
111110

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.
113112

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.
115122

116-
### Redeploy lab VMs
123+
1. Select one or multiple VMs from the list, and then select **Redeploy** in the toolbar.
117124

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.":::
119126

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.
121128

122129
## Connect to lab VMs
123130

112 KB
Loading
112 KB
Loading

0 commit comments

Comments
 (0)