You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/lab-services/classroom-labs/how-to-connect-peer-virtual-network.md
+17-13Lines changed: 17 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,45 +17,49 @@ ms.author: spelluru
17
17
18
18
---
19
19
20
-
# Connect your lab's network with a peer virtual network in Azure Lab Services
21
-
This article provides information about peering your labs network with another network.
20
+
# Connect your lab's network with a peer virtual network in Azure Lab Services
21
+
22
+
This article provides information about peering your labs network with another network.
22
23
23
24
## Overview
25
+
24
26
Virtual network peering enables you to seamlessly connect Azure virtual networks. Once peered, the virtual networks appear as one, for connectivity purposes. The traffic between virtual machines in the peered virtual networks is routed through the Microsoft backbone infrastructure, much like traffic is routed between virtual machines in the same virtual network, through private IP addresses only. For more information, see [Virtual network peering](../../virtual-network/virtual-network-peering-overview.md).
25
27
26
28
You may need to connect your lab's network with a peer virtual network in some scenarios including the following ones:
27
29
28
30
- The virtual machines in the lab have software that connects to on-premises license servers to acquire license
29
-
- The virtual machines in the lab need access to data sets (or any other files) on university's network shares.
31
+
- The virtual machines in the lab need access to data sets (or any other files) on university's network shares.
30
32
31
33
Certain on-premises networks are connected to Azure Virtual Network either through [ExpressRoute](../../expressroute/expressroute-introduction.md) or [Virtual Network Gateway](../../vpn-gateway/vpn-gateway-about-vpngateways.md). These services must be set up outside of Azure Lab Services. To learn more about connecting an on-premises network to Azure using ExpressRoute, see [ExpressRoute overview](../../expressroute/expressroute-introduction.md). For on-premises connectivity using a Virtual Network Gateway, the gateway, specified virtual network, and the lab account must all be in the same region.
32
34
33
35
> [!NOTE]
34
-
> When creating a Azure Virtual Network that will be peered with a lab account, it's important to understand how the virtual network's region impacts where classroom labs are created. For further information, refer to the administrator guide's section on [regions\locations](https://docs.microsoft.com/azure/lab-services/classroom-labs/administrator-guide#regionslocations).
36
+
> When creating a Azure Virtual Network that will be peered with a lab account, it's important to understand how the virtual network's region impacts where classroom labs are created. For more information, see the administrator guide's section on [regions\locations](https://docs.microsoft.com/azure/lab-services/classroom-labs/administrator-guide#regionslocations).
35
37
36
38
## Configure at the time of lab account creation
37
-
During the new lab account creation, you can pick an existing virtual network that shows in the **Peer virtual network** dropdown list on the **Advanced** tab. 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 would have access to the resources on the peered virtual network.
38
39
39
-
There is also a provision to provide **Address range** of virtual machines for the labs. 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 (e.g. 10.20.0.0/20) and not overlap with any existing address ranges. When providing an address range, it is important to think about the number of virtual machines that will be created in the labs and provide an address range to accommodate that. For a given range, the number of labs it can accomodate will be shown.
40
+
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.
40
41
41
42

42
43
43
-
> [!NOTE]
44
-
> For detailed step-by-step instructions for creating a lab account, see [Set up a lab account](tutorial-setup-lab-account.md)
44
+
### Address range
45
+
46
+
There is also an option to provide **Address range** for virtual machines for the labs. 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 (e.g. 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.
45
47
48
+
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 and address range in the lab settings or check the address range of your virtual network being peered.
46
49
47
50
## Configure after the lab is created
48
-
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.
49
51
50
-

52
+
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 virtualnetwork** for labs in the lab account.
51
53
52
-
When you select a virtual network for the **Peer virtual network** field, the **Allow lab creator to pick lab location** option is disabled. It'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 peervirtualnetwork.
54
+

53
55
54
-
> [!IMPORTANT]
55
-
> This setting change applies only to labs that are created after the change is made, not to the existing labs.
56
+
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.
56
57
58
+
> [!IMPORTANT]
59
+
> The peered virtual network setting applies only to labs that are created after the change is made, not to the existing labs.
57
60
58
61
## Next steps
62
+
59
63
See the following articles:
60
64
61
65
-[Allow lab creator to pick lab location](allow-lab-creator-pick-lab-location.md)
0 commit comments