Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Add virtual network in Azure DevTest Labs

Feedback

In this article

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.

Add a virtual network to a lab

To add a configured virtual network and subnet to a lab, follow these steps:

  1. In theAzure portal, go to your lab resource.

  2. On theOverview page, expand theSettings section on the left menu, and selectConfiguration and policies:

    Screenshot that shows how to select the Configuration and policies option for a lab in the Azure portal.

    TheActivity log view opens for the lab where you can review configuration and policies settings.

  3. On the left menu, expand theExternal resources section, and selectVirtual networks to view the lab's current virtual networks.

  4. On theVirtual networks page, selectAdd:

    Screenshot that shows how to add a new virtual network for a lab in the Azure portal.

  5. On theVirtual network page, choose theSelect virtual network option:

    Screenshot that shows to choose the Select virtual network option on the Virtual network page.

  6. 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:

    Screenshot that shows the Choose virtual network page with a list of available virtual networks for the lab.

  7. The virtual network that you select appears on theVirtual network page. SelectSave to add the virtual network to your lab:

    Screenshot that shows how to save the selected virtual network to your lab in the Azure portal.

  8. 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:

    Screenshot that shows how to select the added virtual network on the lab's Virtual networks page when the statue is ready.

  9. TheVirtual network page shows the subnets for the new virtual network. Select a subnet to configure:

    Screenshot that shows how to select the subnet for the new virtual network for the lab.

  10. On theLab Subnet pane, configure the following options:

    • Use in virtual machine creation: Allow or disallow virtual machine (VM) creation in the subnet.
    • Enable shared public IP: Enable or disable ashared public IP address.
    • Allow public IP creation: Allow or disallow creating public IP addresses in the subnet.
    • Maximum virtual machines per user: Specify the maximum number of VMs each user can create in the subnet. If you don't want to restrict the number of VMs, leave this field blank.
  11. On theLab Subnet pane, selectSave. TheVirtual network page refreshes to show the configured subnet for the virtual network.

  12. On theVirtual network page, selectSave to apply the virtual network subnet changes to your lab.

Create VMs in a virtual network

When you allow VM creation in a subnet, you can create lab VMs in the added virtual network with these steps:

  1. Add a lab VM and select a VM base by following the instructions inCreate and add virtual machines.

  2. On theCreate lab resource screen, select theAdvanced settings tab.

  3. Expand theVirtual network dropdown list and select the virtual network you added.

  4. As necessary, expand theSubnet Selector dropdown list and select the desired subnet.

  5. Continue with creating the VM.

Related content


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?