|
1 | 1 | ---
|
2 |
| -title: Connect to a peer network in Azure Lab Services | Microsoft Docs |
3 |
| -description: Learn how to connect your lab network with another network as a peer. For example, connect your on-premises organization/university network with Lab's virtual network in Azure. |
| 2 | +title: Connect to a peer network |
| 3 | +titleSuffix: Azure Lab Services |
| 4 | +description: Learn how to connect your lab network with another network as a peer for lab accounts in Azure Lab Services. For example, connect your on-premises organization/university network with Lab's virtual network in Azure. |
| 5 | +services: lab-services |
| 6 | +ms.service: lab-services |
| 7 | +author: ntrogh |
| 8 | +ms.author: nicktrog |
4 | 9 | ms.topic: how-to
|
5 |
| -ms.date: 06/26/2020 |
| 10 | +ms.date: 03/28/2023 |
6 | 11 | ---
|
7 | 12 |
|
8 | 13 | # Connect your lab's network with a peer virtual network in Azure Lab Services
|
@@ -30,46 +35,49 @@ Certain on-premises networks are connected to Azure Virtual Network either throu
|
30 | 35 |
|
31 | 36 | ## Configure at the time of lab account creation
|
32 | 37 |
|
33 |
| -During the new [lab account creation](tutorial-setup-lab-account.md), you can pick an existing virtual network that shows in the **Peer virtual network** dropdown list on the **Advanced** tab. The list will only show virtual networks in the same region as the lab account. The selected virtual network is connected (peered) to labs created under the lab account. All the virtual machines in labs that are created after the making this change will have access to the resources on the peered virtual network. |
| 38 | +During the new [lab account creation](tutorial-setup-lab-account.md), you can pick an existing virtual network that shows in the **Peer virtual network** dropdown list on the **Advanced** tab. The list only shows virtual networks in the same region as the lab account. The selected virtual network is connected (peered) to labs created under the lab account. All the virtual machines in labs that are created after the making this change have access to the resources on the peered virtual network. |
34 | 39 |
|
35 |
| - |
| 40 | + |
36 | 41 |
|
37 | 42 | ### Address range
|
38 | 43 |
|
39 |
| -There is also an option to provide **Address range** for virtual machines for the labs. The **address range** property applies only if a **peer virtual network** is enabled for the lab. If the address range is provided, all the virtual machines in the labs under the lab account will be created in that address range. The address range should be in CIDR notation (for example, 10.20.0.0/20) and not overlap with any existing address ranges. When providing an address range, it's important to think about the number of *labs* that will be created and provide an address range to accommodate that. Lab Services assumes a maximum of 512 virtual machines per lab. For example, an ip range with '/23' can create only one lab. A range with a '/21' will allow for the creation of four labs. |
| 44 | +There's also an option to provide an address range for virtual machines for the labs. The address range setting applies only if you enable a peer virtual network for the lab. If the address range is provided, all the virtual machines in the labs under the lab account are created in that address range. The address range should be in CIDR notation (for example, 10.20.0.0/20) and shouldn't overlap with any existing address ranges. |
40 | 45 |
|
41 |
| -If the **Address range** is not specified, Lab Services will use the default address range given to it by Azure when creating the virtual network to be peered with your virtual network. The range is often something like 10.x.0.0/16. This may lead to ip range overlap, so make sure to either specify an address range in the lab settings or check the address range of your virtual network being peered. |
| 46 | +When you provide an address range, it's important to think about the number of *labs* that you create. Azure Lab Services assumes a maximum of 512 virtual machines per lab. For example, an IP range with '/23' can create only one lab. A range with a '/21' allows for the creation of four labs. |
| 47 | + |
| 48 | +If the address range isn't specified, Azure Lab Services uses the default address range given to it by Azure when creating the virtual network to be peered with your virtual network. The range is often something like 10.x.0.0/16. This large range might lead to IP range overlap, so make sure to either specify an address range in the lab settings or check the address range of your virtual network being peered. |
42 | 49 |
|
43 | 50 | > [!NOTE]
|
44 | 51 | > Lab creation can fail if the lab account is peered to a virtual network but has too narrow of an IP address range. You can run out of space in the address range if there are too many labs in the lab account (each lab uses 512 addresses).
|
| 52 | +> |
| 53 | +> For example, if you have a block of /19, this address range can accommodate 8192 IP addresses and 16 labs (8192/512 = 16 labs). In this case, lab creation fails on the 17th lab creation. |
45 | 54 | >
|
46 | 55 | > If the lab creation fails, contact your lab account owner/admin and request for the address range to be increased. The admin can increase the address range using steps mentioned in the [Specify an address range for VMs in a lab account](#specify-an-address-range-for-vms-in-the-lab-account) section.
|
47 | 56 |
|
48 | 57 | ## Configure after the lab account is created
|
49 | 58 |
|
50 | 59 | The same property can be enabled from the **Labs configuration** tab of the **Lab Account** page if you didn't set up a peer network at the time of lab account creation. Change made to this setting applies only to the labs that are created after the change. As you can see in the image, you can enable or disable **Peer virtual network** for labs in the lab account.
|
51 | 60 |
|
52 |
| - |
| 61 | + |
53 | 62 |
|
54 |
| -When you select a virtual network for the **Peer virtual network** field, the **Allow lab creator to pick lab location** option is disabled. That's because labs in the lab account must be in the same region as the lab account for them to connect with resources in the peer virtual network. |
| 63 | +When you select a virtual network for the **Peer virtual network** field, the **Allow lab creator to pick lab location** option is disabled. Labs in the lab account must be in the same region as the lab account for them to connect with resources in the peer virtual network. |
55 | 64 |
|
56 | 65 | > [!IMPORTANT]
|
57 | 66 | > The peered virtual network setting applies only to labs that are created after the change is made, not to the existing labs.
|
58 | 67 |
|
59 |
| - |
60 | 68 | ## Specify an address range for VMs in the lab account
|
61 | 69 | The following procedure has steps to specify an address range for VMs in the lab. If you update the range that you previously specified, the modified address range applies only to VMs that are created after the change was made.
|
62 | 70 |
|
63 | 71 | Here are some restrictions when specifying the address range that you should keep in mind.
|
64 | 72 |
|
65 | 73 | - The prefix must be smaller than or equal to 23.
|
66 |
| -- If a virtual network is peered to the lab account, the provided address range cannot overlap with address range from peered virtual network. |
| 74 | +- If a virtual network is peered to the lab account, the provided address range can't overlap with address range from peered virtual network. |
67 | 75 |
|
68 |
| -1. On the **Lab Account** page, select **Labs settings** on the left menu. |
69 |
| -2. For the **Address range** field, specify the address range for VMs that will be created in the lab. The address range should be in the classless inter-domain routing (CIDR) notation (example: 10.20.0.0/23). Virtual machines in the lab will be created in this address range. |
| 76 | +1. On the **Lab Account** page, select **Lab settings** on the left menu. |
| 77 | +2. For the **Address range** field, specify the address range for VMs that are created in the lab. The address range should be in the classless inter-domain routing (CIDR) notation (example: 10.20.0.0/23). Virtual machines in the lab are created in this address range. |
70 | 78 | 3. Select **Save** on the toolbar.
|
71 | 79 |
|
72 |
| -  |
| 80 | +  |
73 | 81 |
|
74 | 82 | ## Next steps
|
75 | 83 |
|
|
0 commit comments