This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Azure DevTest Labs integrates withAzure Bastion to allow connecting to lab virtual machines (VMs) through a browser. When a lab owner enables browser access to lab VMs through Bastion, lab users can connect to their VMs through their browsers without needing any other client, agent, or software.
Azure Bastion provides secure and seamless remote desktop protocol (RDP) and secure shell (SSH) connectivity over transport layer security (TLS), directly from the Azure portal. Lab VMs don't need public IP addresses.
This article covers two ways to enable Azure Bastion browser connectivity to DevTest Labs VMs:
For more information about DevTest Labs user roles and access, seeAdd and configure lab users.
You can create a new virtual network for your lab with an Azure Bastion subnet and another subnet in it. An Azure Bastion subnet allows only Bastion resources in it, so you use the other subnet for creating lab VMs.
In the Azure portal, search for and selectvirtual networks.
SelectCreate at the top of theVirtual networks page.
On theCreate virtual network page, enter aName for the new virtual network, and select the sameSubscription,Resource group, andRegion as your lab.
SelectNext or theSecurity tab.
On theSecurity page, underAzure Bastion, select theEnable Azure Bastion checkbox. Accept or configure the values in theAzure Bastion host name andAzure Bastion public IP address fields.

SelectNext or theIP Addresses tab.
On theIP Addresses page, ensure there are two subnets nameddefault andAzureBastionSubnet, and configure IP address ranges if necessary.

SelectReview + create, and when validation passes, selectCreate.
Once the new virtual network is created, go to its page, selectSubnets in the left navigation, and confirm that there are two subnets,default andAzureBastionSubnet.

Follow these instructions to connect your lab to the new Azure Bastion-enabled virtual network.
From your labOverview page, selectConfiguration and policies in the left navigation.
On theConfiguration and policies page, in the left navigation underExternal resources, selectVirtual networks.
On theVirtual networks page, selectAdd.
On theVirtual network page, selectSelect virtual network.
On theChoose virtual network page, select the Azure Bastion-enabled virtual network you created.
On theVirtual network page, selectSave.
On theVirtual networks page, remove any previous virtual network from the lab. Select... next to that virtual network, selectDelete, and then selectYes.

Follow these instructions to enable VM creation in the default subnet of the new virtual network.
On theVirtual networks page, select the Azure Bastion-enabled virtual network.
On theVirtual network page, make sure that both theAzureBastionSubnet subnet and thedefault subnet appear, and select thedefault subnet.
On theLab Subnet pane, selectYes underUse in virtual machine creation, and then selectSave. You can now create VMs in the default subnet of your lab virtual network.

You can enable browser connections to existing lab VMs by creating a new Azure Bastion subnet in your lab's existing virtual network.
On your labOverview page, selectConfiguration and policies from the left navigation.
On theConfiguration and policies page, selectVirtual networks underSettings in the left navigation.
Select your lab's existing virtual network, and on the virtual network's page, selectOpen Virtual Network Blade.
On the virtual network's page, selectBastion underSettings in the left navigation.
On theBastion page, if necessary, add a new address range that's within the virtual network's address space, but doesn't overlap with the existing lab subnet.
SelectDeploy Bastion.

Once you deploy Azure Bastion in a new or existing lab virtual network, enable browser connections for the lab.
On the labOverview page, selectConfiguration and policies, and then selectConnect via Bastion underSettings in the left navigation.
On theConnect via Bastion page, setConnect via Bastion toOn, and then selectSave.

To connect to a Bastion-enabled lab VM:
For more information, seeConnect to lab VMs in a browser via Azure Bastion.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?