Azure Lab Services will be retired on June 28, 2027. For more information, see the retirement guide.
In this article, you learn how to connect to a lab virtual machine (VM) in Azure Lab Services. Depending on the operating system (OS) and your local machine, you can use different mechanisms, such as secure shell (SSH) or remote desktop (RDP), to connect to your VM.
To connect to a Linux-based lab VM, you can use the secure shell protocol (SSH), remote desktop protocol (RDP), or X2Go.
Azure Lab Services automatically configures SSH for Linux VMs. Both lab users and lab creators can use SSH with Linux VMs without more setup. If you want to connect to a VM with a Linux graphical user interface (GUI) desktop, the lab creator or educator might need to do extra setup on the template VM.
Connect to a Linux lab VM using RDP
Before you can connect to a Linux VM using RDP, the lab creator first needs to enable the Client connection (RDP) setting and ensure that a GUI desktop and RDP are installed. For more information on steps that the lab creator needs to complete, see the example that shows how to set up GNOME and RDP.
To connect to a Linux VM using RDP, follow the instructions based on the type of OS.
Another option for connecting to a Linux VM that has a GUI desktop installed, is to use X2Go. For more information on steps that the lab creator needs to complete, see examples to set up X2Go with XFCE, xUbuntu, and MATE.