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.
In this article, you learn how to add a virtual network to a lab, and configure it for creating lab virtual machines (VMs).
Azure DevTest Labs creates a new virtual network for each lab. If you have an existing virtual network, such as one configured with Azure ExpressRoute or site-to-site virtual private network (VPN), you can add this network to your lab. You can then create lab VMs in that virtual network.
To add a configured virtual network and subnet to a lab, follow these steps:
In theAzure portal, go to your lab resource.
On theOverview page, expand theSettings section on the left menu, and selectConfiguration and policies:
TheActivity log view opens for the lab where you can review configuration and policies settings.
On the left menu, expand theExternal resources section, and selectVirtual networks to view the lab's current virtual networks.
On theVirtual networks page, selectAdd:
On theVirtual network page, choose theSelect virtual network option:
TheChoose virtual network page shows all virtual networks in the subscription that are in the same region as the lab. Select the virtual network that you want to add to your lab:
The virtual network that you select appears on theVirtual network page. SelectSave to add the virtual network to your lab:
The added virtual network appears in the list for the lab on theVirtual networks page. When theStatus for the new virtual network shows asReady, select the network:
TheVirtual network page shows the subnets for the new virtual network. Select a subnet to configure:
On theLab Subnet pane, configure the following options:
On theLab Subnet pane, selectSave. TheVirtual network page refreshes to show the configured subnet for the virtual network.
On theVirtual network page, selectSave to apply the virtual network subnet changes to your lab.
When you allow VM creation in a subnet, you can create lab VMs in the added virtual network with these steps:
Add a lab VM and select a VM base by following the instructions inCreate and add virtual machines.
On theCreate lab resource screen, select theAdvanced settings tab.
Expand theVirtual network dropdown list and select the virtual network you added.
As necessary, expand theSubnet Selector dropdown list and select the desired subnet.
Continue with creating the VM.
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?