title | description | ms.topic | ms.date |
---|---|---|---|
Manage a VM pool in Azure Lab Services |
Learn how to manage a VM pool in Azure Lab Services |
how-to |
01/21/2022 |
The Virtual machine pool page of a lab allows educators to set how many VMs are available for use and manage the state of those VMs.
- Start and stop all the VMs at once.
- Start and stop specific VMs.
- Reset a VM.
- Connect to a student's VM.
- Change the lab capacity.
VMs can be in one of a few states.
- Unassigned. These VMs aren't assigned to students yet. These VMs won't be started when a schedule runs.
- Stopped. VM is turned off and not available for use.
- Starting. VM is starting. It's not yet available for use.
- Running. VM is running and available for use.
- Stopping. VM is stopping and not available for use.
Warning
Turning on a student VM will not affect the quota for the student. Make sure to stop all VMs manually or use a schedule to avoid unexpected costs.
You can start all VMs in a lab by selecting the Start all button at the top of the page.
:::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.":::
Individual VMs can be started by clicking the state toggle. The toggle will read Starting as the VM starts up, and then Running once the VM has started. You can also select multiple VMs using the checks to the left of the Name column. Once the VMs are checked, select the Start button at the top of the screen.
You can select the Stop all button to stop all of the VMs.
:::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.":::
Individual VMs can be stopped by clicking the state toggle. The toggle will read Stopping as the VM shuts down, and then Stopped once the VM has shutdown. You can also select multiple VMs using the checks to the left of the Name column. Once the VMs are checked, select the Stop button at the top of the screen.
To reset one or more VMs, select them in the list, and then select Reset on the toolbar.
:::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.":::
On the Reset virtual machine(s) dialog box, select Reset.
:::image type="content" source="./media/how-to-set-virtual-machine-passwords/reset-vms-dialog.png" alt-text="Screenshot of reset virtual machine confirmation dialog.":::
In the April 2022 Update (preview), redeploying VMs replaces the previous reset VM behavior. In the Lab Services web portal: https://labs.azure.com, the command is named Troubleshoot and is available in the student's view of their VMs.
If students are facing difficulties accessing their VM, redeploying the VM may provide a resolution for the issue. Redeploying, unlike resetting, doesn't cause the data on the OS to be lost. When you redeploy a VM, Azure Lab Services will shut down the VM, move it to a new host, and restart it. You can think of it as a refresh of the underlying VM for the student’s machine. The student doesn’t need to re-register to the lab or do any other action. Any data you saved in the OS disk (usually C: drive) of the VM will still be available after the redeploy operation. Anything saved on the temporary disk (usually D: drive) will be lost.
:::image type="content" source="./media/how-to-set-virtual-machine-passwords/redeploy-vms.png" alt-text="Screenshot of redeploy virtual machine menu option.":::
Educators can connect to a student VM as long as it's turned on. Verify the student isn't connected to the VM first. By connecting to the VM, you can access local files on the VM and help students troubleshoot issues.
To connect to the student VM, hover the mouse on the VM in the list and select the Connect button. For further instructions based on the operating system you're using, see Connect to a lab VM.
To change the lab capacity (number of VMs in the lab), select Lab capacity on the toolbar and update number of VMs on the Lab capacity window on the right.
:::image type="content" source="./media/how-to-manage-vm-pool/virtual-machine-pool-update-lab-capacity.png" alt-text="Screenshot of Lab capacity window.":::
If using Teams or Canvas integration, lab capacity will automatically be updated when Azure Lab Services syncs the user list.
-
Switch to the Virtual machine pool tab.
-
Select ... (ellipsis) on the toolbar and then select Export CSV.
:::image type="content" source="./media/how-to-manage-vm-pool/virtual-machines-export-csv.png" alt-text="Screenshot of virtual machine pool page in Azure Lab Services. The Export CSV menu item is highlighted.":::
See the following articles: