Access a lab virtual machine in Azure Lab Services

This article describes how you can access your lab virtual machines in Azure Lab Services. Use Teams, Canvas, or the Azure Lab Services website to view, start, stop, and connect to a lab virtual machine.

Prerequisites

  • To register for a lab, you need a lab registration link.
  • To view, start, stop, and connect to a lab VM, you need to register for the lab and have an assigned lab VM.

Access a lab virtual machine

In the Azure Lab Services website, you can view and manage your assigned lab virtual machines. To access the Azure Lab Services website:

  1. Go to the Azure Lab Services website (https://labs.azure.com) in a web browser.

  2. Sign in with the email address that was granted access to the lab by the lab creator.

Important

If you have received a lab registration link from the lab creator, you first need to go through a one-time registration process before you can access your labs. The registration process depends on how the lab creator configured the lab.

Register for the lab

When you're invited to a lab based on your email address, you first need to register for the lab by using the registration link. You receive this link from the lab creator. This registration process is a one-time operation. After you register for the lab, you can then access the lab details in the Azure Lab Services website.

When you're accessing your lab through Teams or Canvas, or if the lab creator added you to the lab based on your Microsoft Entra group membership, you're automatically registered for the lab.

To register for a lab by using the registration link:

  1. Open the registration URL that you received from the lab creator in a web browser.

    You have to register for each lab that you want to access. After you complete the lab registration, you no longer need the registration link to access the lab in the Azure Lab Services website.

    Screenshot of browser with example registration link for Azure Lab Services, highlighting the registration link.

  2. Sign in with the email address to which the registration link was sent.

    Note

    You need a Microsoft account to use Azure Lab Services, unless you're using Canvas. Follow these steps to use a non-Microsoft account, such as a Yahoo or Google account, to sign in to the Azure Lab Services website.

After the registration finishes, confirm that you see the lab virtual machine in My virtual machines.

User account types

Azure Lab Services supports different email account types when registering for a lab:

  • An organizational email account that's provided by your Microsoft Entra instance.
  • A Microsoft-domain email account, such as outlook.com, hotmail.com, msn.com, or live.com.
  • A non-Microsoft email account, such as one provided by Yahoo! or Google. You need to link your account with a Microsoft account.

Use a non-Microsoft email account

You can use non-Microsoft email accounts to register and sign in to a lab. However, the registration requires that you first create a Microsoft account that's linked to your non-Microsoft email address.

You might already have a Microsoft account that's linked to your non-Microsoft email address. For example, users already have a Microsoft account if you've used this email address with other Microsoft products or services, such as Office, Skype, OneDrive, or Windows.

When you use the lab registration link to sign into a lab, you're prompted for your email address and password. If you sign in with a non-Microsoft account that's not linked to a Microsoft account, you receive the following error message:

Screenshot that shows the sign-in error message for the Azure Lab Services website.

Follow these steps to sign up for a new Microsoft account.

View lab VM details

When you access your lab, either through the Azure Lab Services website, Microsoft Teams, or Canvas, you get the list of lab virtual machines that are assigned to you.

Screenshot of My virtual machines page for Azure Lab Services.

For each lab VM, you can view the following information:

  • Lab name: this name is assigned by the lab creator when creating the lab.
  • Operating system: an icon represents the operating system of the lab VM.
  • Quota hours: a progress bar shows your assigned and consumed number of quota hours. Learn more about the quota hours.
  • Lab VM status: indicates whether the lab VM is starting, running, or stopped.

In addition, you can also perform specific actions on the lab VM:

View quota hours

Quota hours are the extra time allotted to you outside of the scheduled time for the lab. For example, the time outside of classroom time, to complete homework.

On the lab VM tile, you can view your consumption of quota hours in the progress bar. The progress bar color and the message give an indication of the usage:

Status Description
The progress bar is grayed out A class is in progress, based on the lab schedule. You don't consume any quota hours during scheduled hours.

Screenshot of lab VM tile in Azure Lab Services when a schedule started the VM.
The progress bar is red You've consumed all your quota hours. If there's a lab schedule, then you can only access the lab VM during the scheduled hours.

Screenshot of lab VM tile in Azure Lab Services when there's quota usage.
The progress bar is blue No class is currently in progress and you still have quota hours available to access the lab VM.

Screenshot of lab VM tile in Azure Lab Services when quota has been partially used.
The text Available during classes only is shown There are no quota hours allocated to the lab. You can only access the lab VM during the scheduled hours for the lab.

Screenshot of lab VM tile in Azure Lab Services when there's no quota.

Start or stop the lab VM

You can start and stop a lab virtual machine from the My virtual machines page. If the lab creator configured a lab schedule, the lab VM is automatically started and stopped during the scheduled hours.

Alternately, you can also stop a lab VM by using the operating system shutdown command from within the lab VM. The preferred method to stop a lab VM is to use the My virtual machines page to avoid incurring additional costs.

Warning

If you use the OS shutdown command inside the lab VM, you might still incur costs. The preferred method is to use the stop action on the My virtual machines page. When you use lab plans, Azure Lab Services will detect when the lab VM is shut down, marks the lab VM as stopped, and billing stops.

To start or stop a lab VM:

  1. Go to the My virtual machines page in Teams, Canvas, or the Azure Lab Services website.

  2. Use the toggle control next to the lab VM status to start or stop the lab VM.

    When the VM is in progress of starting or stopping, the control is inactive.

    Starting or stopping the lab VM might take some time to complete.

    Screenshot of My virtual machines page for Azure Lab Services, highlighting the status toggle and status label on the VM tile.

  3. After the operation finishes, confirm that the lab VM status is correct.

    Screenshot of My virtual machines page for Azure Lab Services, highlighting the status label on the VM tile.

Connect to the lab VM

When the lab virtual machine is running, you can remotely connect to the VM. Depending on the lab VM operating system configuration, you can connect by using remote desktop (RDP) or secure shell (SSH).

If there are no quota hours available, you can't start the lab VM outside the scheduled lab hours and can't connect to the lab VM.

Learn more about how to connect to a lab VM.

Next steps