title | description | services | documentationcenter | author | manager | editor | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Set passwords for VMs in Azure Lab Services | Microsoft Docs |
Learn how to set and reset passwords for virtual machines (VMs) in classroom labs of Azure Lab Services. |
lab-services |
na |
spelluru |
lab-services |
na |
na |
na |
article |
02/20/2020 |
spelluru |
This article shows you how to do the following tasks:
- Increase the number of virtual machines (VMs) in the lab
- Start all VMs or selected VMs
- Reset VMs
To increase or decrease the lab capacity (number of virtual machines in a lab), do the following steps:
-
On the Virtual machine pool page, select Lab capacity: <number> machines.
-
Enter the new number of VMs you want in the lab. This number must be greater than or equal to the number of users registered in the lab.
-
Then, select Save.
-
If you increased the capacity, you can see the VM or VMs being created. If you don't see the new VM in the list, refresh the page.
-
Switch to the Virtual machine pool page.
-
Select Start all from the toolbar.
-
After all the VMs are started, you can stop all VMs by selecting the Stop all button on the toolbar.
There are two ways to start selected VMs (one or more). First way is to select the VM or VMs in the list, and then select Start on the toolbar.
The second way is to select one or more VMs in the list, and toggle the button in the State column.
Similarly, you can stop one or more VMs by toggling the button in the State column or selecting Stop on the toolbar.
Note
When an educator turns on a student VM, quota for the student isn't affected. Quota for a user specifies the number of lab hours available to the user outside of the scheduled class time. For more information on quotas, see Set quotas for users.
To reset one or more VMs, select them in the list, and then select Reset on the toolbar.
On the Reset virtual machine(s) dialog box, select Reset.
A lab owner (educator) can set/reset the password for VMs at the time of creating the lab (lab creation wizard) or after creating the lab on the Template page.
A lab owner (educator) can set a password for VMs in the lab on the Virtual machine credentials page of the lab creation wizard.
By enabling/disabling the Use same password for all virtual machines option on this page, an educator can choose to use same password for all VMs in the lab or allow students to set passwords for their VMs. By default, this setting is enabled for all Windows and Linux operating system images except Ubuntu. When this setting is disabled, students will be prompted to set a password when they try to connect to the VM for the first time.
-
On the Template page of the lab, select Reset password on the toolbar.
-
On the Reset password dialog box, enter a password, and select Reset password.
The lab creator (educator) can connect to a student VM if the following conditions are met:
- The Use same password for all virtual machines option was selected when creating the lab
- The VM is running
To connect to the student VM, hover the mouse on the VM in the list and select the computer button.
Note
When the educator starts the VM and connects to it, the student quota is unaffected.
-
Switch to the Virtual machine pool tab.
-
Select ... (ellipsis) on the toolbar and then select Export CSV.
To learn about other student usage options you (as a lab owner) can configure, see the following article: Configure student usage.
To learn about how students can reset passwords for their VMs, see Set or reset password for virtual machines in classroom labs (students).