| title | Connect to lab VMs via Azure Bastion | ||
|---|---|---|---|
| description | Learn how to connect to Azure DevTest Labs virtual machines (VMs) through an internet browser if Azure Bastion is enabled for the lab. | ||
| ms.topic | how-to | ||
| ms.author | rosemalcolm | ||
| author | RoseHJM | ||
| ms.date | 12/04/2025 | ||
| ms.custom |
|
This article describes how to connect to your DevTest Labs virtual machine (VM) by using Azure Bastion. Bastion provides secure remote desktop protocol (RDP) or secure shell (SSH) access without using public IP addresses or exposing RDP or SSH ports to the internet.
- A running VM in a lab that has a Bastion-configured virtual network and Bastion connections enabled. For more information, see Enable browser connection to DevTest Labs VMs with Azure Bastion.
- Ownership access to the VM and at least DevTest Labs User role in the lab.
- In the Azure portal, search for and select DevTest Labs.
- On the DevTest Labs page, select your lab.
- On the lab's Overview page, select the VM you want to connect to from My virtual machines.
- On the VM's Overview page, from the top menu, select Connect > Connect via Bastion.
- In the Connect via Bastion pane, enter the username and password for the VM, and select whether you want the VM to open in a new browser window.
- Select Connect.
:::image type="content" source="./media/connect-virtual-machine-through-browser/lab-vm-browser-connect.png" alt-text="Screenshot of the VM Overview screen with the Bastion connect button highlighted.":::