| title | Tutorial: Register & access a lab |
|---|---|
| titleSuffix | Azure Lab Services |
| description | In this tutorial, learn how to register for a lab in Azure Lab Services and connect to the lab virtual machine from the Azure Lab Services website. |
| services | lab-services |
| ms.service | azure-lab-services |
| author | RoseHJM |
| ms.author | rosemalcolm |
| ms.topic | tutorial |
| ms.date | 06/29/2023 |
[!INCLUDE Retirement guide]
Azure Lab Services supports inviting lab users based on their email address, by syncing with a Microsoft Entra group, or by integrating with Teams or Canvas. In this tutorial, you learn how to register for a lab with your email address, view the lab in the Azure Lab Services website, and connect to the lab virtual machine with a remote desktop client or SSH.
:::image type="content" source="./media/tutorial-connect-vm-in-classroom-lab/lab-services-process-register-access-lab.png" alt-text="Diagram that shows the steps involved in registering and accessing a lab from the Azure Lab Services website.":::
If you're using Microsoft Teams or Canvas with Azure Lab Services, learn more in our Tutorial: access your lab from Microsoft Teams or Canvas.
[!div class="checklist"]
- Register for the lab by using an email address
- Access the lab in the Azure Lab Services website
- Start the lab VM
- Connect to the lab VM
-
A lab that was created in the Azure Lab Services website. Follow the steps to create a lab and invite users in Tutorial: Create a lab for classroom training.
-
You've received a lab registration link.
[!INCLUDE Register for a lab]
After the registration process finishes, you can now view the labs you have access to. Once you've registered for the lab, you can directly access your labs from the Azure Lab Services website (https://labs.azure.com).
-
Select My virtual machines and confirm that you can see your lab virtual machine.
The page has a tile for each of your lab virtual machines and shows the lab name, operating system, and the VM status.
:::image type="content" source="./media/tutorial-connect-vm-in-classroom-lab/accessible-vms.png" alt-text="Screenshot of My virtual machines page in Azure Lab Services portal.":::
-
Confirm that the lab VM is in the Stopped state.
The VM tile enables you to perform specific actions on the lab VM, such starting and stopping it.
:::image type="content" source="./media/tutorial-connect-vm-in-classroom-lab/vm-in-stopped-state.png" alt-text="Screenshot of My virtual machines page in Azure Lab Services website, highlighting the stopped state.":::
Before you can connect to a lab VM, the lab VM must be running.
To start the lab VM from the Azure Lab Services website:
-
Start the VM by selecting the status toggle control. Starting the lab VM might take some time.
:::image type="content" source="./media/tutorial-connect-vm-in-classroom-lab/start-vm.png" alt-text="Screenshot of My virtual machines page in the Azure Lab Services website, highlighting the VM state toggle.":::
-
Confirm that the status of the VM is now Running.
:::image type="content" source="./media/tutorial-connect-vm-in-classroom-lab/vm-running.png" alt-text="Screenshot of My virtual machines page in the Azure Lab Services website, highlighting the VM is running.":::
Now that the lab VM is running, you can connect to it with a remote desktop client or SSH, depending on the operating system.
To retrieve the connection information from the Azure Lab Services website:
-
Select the connect button in the lower right of the lab VM tile to retrieve the connection information.
:::image type="content" source="./media/tutorial-connect-vm-in-classroom-lab/connect-vm.png" alt-text="Screenshot of My virtual machines page in Azure Lab Services website, highlighting the Connect button.":::
-
Connect to the lab VM in either of two ways:
-
For Windows virtual machines, open the RDP connection file once it has finished downloading. Use the credentials that the lab creator provided to sign in to the virtual machine. For more information, see Connect to a Windows lab VM.
-
For Linux virtual machines, you can use either SSH or RDP (if RDP is enabled for the lab) to connect to the VM. For more information, see Connect to a Linux lab VM.
-
In this tutorial, you registered for a lab using the registration link you got from the lab creator. You then accessed the lab in the Azure Lab Services website and connected to the lab VM with a remote desktop client or SSH.
- Learn about the different ways to access a lab
- Learn how to connect to a lab VM with SSH or RDP
- Learn how to stop a lab VM