Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 2.38 KB

File metadata and controls

41 lines (30 loc) · 2.38 KB
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
UpdateFrequency2
sfi-image-nochange

Connect to lab VMs via Azure Bastion

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.

Prerequisites

Connect to a lab VM via Bastion

  1. In the Azure portal, search for and select DevTest Labs.
  2. On the DevTest Labs page, select your lab.
  3. On the lab's Overview page, select the VM you want to connect to from My virtual machines.
  4. On the VM's Overview page, from the top menu, select Connect > Connect via Bastion.
  5. 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.
  6. 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.":::

Note

If you don't see Connect via Bastion on the VM's top menu, the lab isn't set up for Azure Bastion. You can select Connect to connect via RDP or SSH.

Related content