Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c6bd50

Browse files
committedApr 21, 2022
deprecate old shared server article
1 parent 96e6022 commit 6c6bd50

File tree

5 files changed

+92
-31
lines changed

5 files changed

+92
-31
lines changed
 

‎articles/lab-services/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@
239239
href: how-to-configure-lab-accounts.md
240240
- name: Allow lab creator to pick lab location
241241
href: allow-lab-creator-pick-lab-location.md
242+
- name: Create a lab with a shared resource (deprecated)
243+
href: how-to-create-a-lab-with-shared-resource-1.md
242244
- name: Connect to a peer virtual network
243245
href: how-to-connect-peer-virtual-network.md
244246
- name: Attach or detach a shared image gallery
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: How to Create a Lab with a Shared Resource (deprecated) | Azure Lab Services
3+
description: Learn how to create a lab that requires a resource shared among the students. (deprecated)
4+
author: emaher
5+
ms.topic: how-to
6+
ms.date: 03/03/2022
7+
ms.custom: devdivchpfy22
8+
ms.author: enewman
9+
---
10+
11+
# How to create a lab with a shared resource in Azure Lab Services (deprecated)
12+
13+
[!INCLUDE [preview note](./includes/lab-services-new-update-note.md)]
14+
15+
When you're creating a lab, there might be some resources that need to be shared among all the students in a lab. For example, you have a licensing server or SQL Server for a database class. This article will discuss the steps to enable the shared resource for a lab. We’ll also talk about how to limit access to the shared resource.
16+
17+
## Architecture
18+
19+
As shown in the diagram below we'll have a lab account with a lab. The lab account will have the vnet peering settings so the virtual network for the lab is connected to the network of the shared resource. In the diagram below, there are two virtual networks with non-overlapping IP ranges. These IP ranges are just example ranges. Also, the shared resource virtual network is in the same subscription as the lab account.
20+
21+
:::image type="content" source="./media/how-to-create-a-lab-with-shared-resource-1/shared-resource-architecture.png" alt-text="Lab Services with shared resource architecture.":::
22+
23+
## Setup shared resource
24+
25+
The virtual network for the shared resource must be created before the lab is created. For more information on how to create a virtual network, see [create a virtual network](../virtual-network/quick-create-portal.md). Planning out virtual network ranges so they don’t overlap with the ip address of the lab machines is important. For more information about planning your network, see the [plan virtual networks](../virtual-network/virtual-network-vnet-plan-design-arm.md) article. In the example, the shared resource is in a virtual network with the range 10.2.0.0/16. If not done already, [create a subnet](../virtual-network/virtual-network-manage-subnet.md#add-a-subnet) to hold the shared resource. In the example, we use the 10.2.0.0/24 range, but your range might be different depending on the needs of your network.
26+
27+
The shared resource can be software running on a virtual machine or an Azure provided service. The shared resource should be available through private IP address. By making the shared resource available through private IP only, you limit access to that shared resource.
28+
29+
The diagram also shows a network security group (NSG) which can be used to restrict traffic coming from the student VM. For example, you can write a security rule that states traffic from the student VM's IP addresses can only access one shared resource and nothing else. For more information on how to set security rules, see [manage network security group](../virtual-network/manage-network-security-group.md#work-with-security-rules). If you want to restrict access, to a shared resource of a specific lab, get the IP address for the lab from the [lab settings of the lab](manage-labs.md#view-labs). And then, set an inbound rule to allow access only from that IP address. Don’t forget to allow ports 49152 to 65535 for that IP address. Optionally, you can find the private IP address of the student’s VMs by using the [virtual machine pool page](how-to-set-virtual-machine-passwords.md).
30+
31+
If your shared resource is an Azure virtual machine running necessary software, you might have to modify the default firewall rules for the virtual machine.
32+
33+
### Tips for shared resources - License server
34+
35+
One of the most common shared resources is a License server, here are a few tips on how to be successful with setting one up.
36+
37+
#### Server region
38+
39+
The License server must be connected to the virtual network that is peered to the lab. As the license server needs to be located in the same region as the lab account.
40+
41+
#### Static private IP and MAC address
42+
43+
By default virtual machines have a dynamic private ip. [Before you setup any software, set the private ip to static](../virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal.md). The private IP and the MAC address are now set to be static.
44+
45+
#### Control Access
46+
47+
Controlling access to the license server is key. When the VM is set up, access will still be needed for maintenance, troubleshooting, and updating. Following are a few ways for controlling access:
48+
49+
- [Setting up Just in Time (JIT) access within Microsoft Defender for Cloud.](../security-center/security-center-just-in-time.md?tabs=jit-config-asc%252cjit-request-asc)
50+
- [Setting up a Network Security Group to restrict access.](../virtual-network/network-security-groups-overview.md)
51+
- [Setup Bastion to allow secure access to the license server.](https://azure.microsoft.com/services/azure-bastion/)
52+
53+
## Lab Account
54+
55+
To use a shared resource, the lab account must be set up to use a [peered virtual network](how-to-connect-peer-virtual-network.md). In this case, we'll be peering to the virtual network that holds the shared resource.
56+
57+
>[!WARNING]
58+
>The lab for your class must be created **after** the lab account is peered to the shared resource virtual network.
59+
60+
## Template machine
61+
62+
When your lab plan/lab account is set to use advanced networking, the template machine should now have access to the shared resource. You might have to update the firewall rules, depending on the shared resource being accessed.
63+
64+
## Next Steps
65+
66+
As an administrator, [configure virtual network peering on your lab account](how-to-connect-peer-virtual-network.md).

‎articles/lab-services/how-to-create-a-lab-with-shared-resource.md

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,58 +10,51 @@ ms.author: enewman
1010

1111
# How to create a lab with a shared resource in Azure Lab Services
1212

13+
[!INCLUDE [preview note](./includes/lab-services-new-update-focused-article.md)]
14+
15+
> [!NOTE]
16+
> If using a version of Azure Lab Services prior to the [April 2022 Update (preview)](lab-services-whats-new.md), see [How to create a lab with a shared resource in Azure Lab Services (deprecated)](how-to-create-a-lab-with-shared-resource-1.md).
17+
1318
When you're creating a lab, there might be some resources that need to be shared among all the students in a lab. For example, you have a licensing server or SQL Server for a database class. This article will discuss the steps to enable the shared resource for a lab. We’ll also talk about how to limit access to the shared resource.
1419

1520
## Architecture
1621

17-
As shown in the diagram below we'll have a lab account with a lab. The lab account will have the vnet peering settings so the virtual network for the lab is connected to the network of the shared resource. In the diagram below, there are two virtual networks with non-overlapping IP ranges. These IP ranges are just example ranges. Also, the shared resource virtual network is in the same subscription as the lab account.
22+
As shown in the diagram below we'll have a lab plan with a lab. The lab plan will have advanced networking enabled. In our example, the virtual network for the lab is the same network of the shared resource. Optionally, routing maybe used to connect lab VMs to shared resources in other subnets. The lab VMs can connect using the private IP of the shared server. Also, the virtual network is in the same region as the lab plan and lab.
1823

1924
:::image type="content" source="./media/how-to-create-a-lab-with-shared-resource/shared-resource-architecture.png" alt-text="Lab Services with shared resource architecture.":::
2025

2126
## Setup shared resource
2227

23-
The virtual network for the shared resource must be created before the lab is created. For more information on how to create a virtual network, see [create a virtual network](../virtual-network/quick-create-portal.md). Planning out virtual network ranges so they don’t overlap with the ip address of the lab machines is important. For more information about planning your network, see the [plan virtual networks](../virtual-network/virtual-network-vnet-plan-design-arm.md) article. In the example, the shared resource is in a virtual network with the range 10.2.0.0/16. If not done already, [create a subnet](../virtual-network/virtual-network-manage-subnet.md#add-a-subnet) to hold the shared resource. In the example, we use the 10.2.0.0/24 range, but your range might be different depending on the needs of your network.
28+
The virtual network for the shared resource must be created before the lab plan or lab is created. For more information on how to create a virtual network and subnets, see [create a virtual network](../virtual-network/quick-create-portal.md) and [create a subnet](../virtual-network/virtual-network-manage-subnet.md#add-a-subnet). Planning out virtual network ranges is an important step when designing your network. For more information about planning your network, see the [plan virtual networks](../virtual-network/virtual-network-vnet-plan-design-arm.md) article.
2429

2530
The shared resource can be software running on a virtual machine or an Azure provided service. The shared resource should be available through private IP address. By making the shared resource available through private IP only, you limit access to that shared resource.
2631

27-
The diagram also shows a network security group (NSG) which can be used to restrict traffic coming from the student VM. For example, you can write a security rule that states traffic from the student VM's IP addresses can only access one shared resource and nothing else. For more information on how to set security rules, see [manage network security group](../virtual-network/manage-network-security-group.md#work-with-security-rules). If you want to restrict access, to a shared resource of a specific lab, get the IP address for the lab from the [lab settings of the lab](manage-labs.md#view-labs). And then, set an inbound rule to allow access only from that IP address. Don’t forget to allow ports 49152 to 65535 for that IP address. Optionally, you can find the private IP address of the student’s VMs by using the [virtual machine pool page](how-to-set-virtual-machine-passwords.md).
32+
The diagram also shows a network security group (NSG) which can be used to restrict traffic coming from the student VM. For example, you can write a security rule that states traffic from the student VM's IP addresses can only access one shared resource and nothing else. For more information on how to set security rules, see [manage network security group](../virtual-network/manage-network-security-group.md#work-with-security-rules).
2833

2934
If your shared resource is an Azure virtual machine running necessary software, you might have to modify the default firewall rules for the virtual machine.
3035

31-
### Tips for shared resources - License server
32-
33-
One of the most common shared resources is a License server, here are a few tips on how to be successful with setting one up.
34-
35-
#### Server region
36-
37-
The License server must be connected to the virtual network that is peered to the lab. As the license server needs to be located in the same region as the lab account.
38-
39-
#### Static private IP and MAC address
40-
41-
By default virtual machines have a dynamic private ip. [Before you setup any software, set the private ip to static](../virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal.md). The private IP and the MAC address are now set to be static.
42-
43-
#### Control Access
44-
45-
Controlling access to the license server is key. When the VM is set up, access will still be needed for maintenance, troubleshooting, and updating. Following are a few ways for controlling access:
36+
## Lab Plan
4637

47-
- [Setting up Just in Time (JIT) access within Microsoft Defender for Cloud.](../security-center/security-center-just-in-time.md?tabs=jit-config-asc%252cjit-request-asc)
48-
- [Setting up a Network Security Group to restrict access.](../virtual-network/network-security-groups-overview.md)
49-
- [Setup Bastion to allow secure access to the license server.](https://azure.microsoft.com/services/azure-bastion/)
38+
To use a shared resource, the lab plan must be set up to use advanced networking. For more information, see [Connect to your virtual network in Azure Lab Services](how-to-connect-vnet-injection.md). In this case, Lab Services will inject lab VM networking resources into the virtual network that holds the shared resource.
5039

51-
## Lab Plan
40+
> [!WARNING]
41+
> Advanced networking must be enabled during lab plan creation. It can't be added later.
5242
53-
To use a shared resource, the lab plan must be set up to use advanced networking. For more information, see [Connect to your virtual network in Azure Lab Services](how-to-connect-vnet-injection.md). In this case, we'll inject lab VM networking resources into the virtual network that holds the shared resource.
43+
When your lab plan is set to use advanced networking, the template VM and student VMs should now have access to the shared resource. You might have to update the virtual network's [network security group](/azure/virtual-network/network-security-groups-overview), virtual network's [user-defined routes](/azure/virtual-network/virtual-networks-udr-overview#user-defined) or server's firewall rules.
5444

55-
>[!WARNING]
56-
>Advanced networking must be enabled during lab plan creation. It can't be added later.
45+
## Tips
5746

58-
## Lab Account (deprecated)
47+
One of the most common shared resources is a license server. The following list has a few tips to successfully configure a server.
5948

60-
To use a shared resource, the lab account must be set up to use a [peered virtual network](how-to-connect-peer-virtual-network.md). In this case, we'll be peering to the virtual network that holds the shared resource.
49+
1. Advanced networking must be enabled when the lab plan is created.
50+
1. The license server needs to be located in the same region as the lab plan and virtual network.
51+
1. By default virtual machines have a dynamic private ip. [Before you setup any software, set the private ip to static](../virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal.md).
52+
1. Controlling access to the license server is key. When the VM is set up, access will still be needed for maintenance, troubleshooting, and updating. Following are a few ways for controlling access:
6153

62-
>[!WARNING]
63-
>The lab for your class must be created **after** the lab account is peered to the shared resource virtual network.
54+
- [Setting up Just in Time (JIT) access within Microsoft Defender for Cloud.](../security-center/security-center-just-in-time.md?tabs=jit-config-asc%252cjit-request-asc)
55+
- [Setting up a Network Security Group to restrict access.](../virtual-network/network-security-groups-overview.md)
56+
- [Setup Bastion to allow secure access to the server.](https://azure.microsoft.com/services/azure-bastion/)
6457

65-
## Template machine
58+
## Next Steps
6659

67-
When your lab plan/lab account is set to use advanced networking, the template machine should now have access to the shared resource. You might have to update the firewall rules, depending on the shared resource being accessed.
60+
As an administrator, [create a lab plan with advanced networking](how-to-connect-vnet-injection.md).

0 commit comments

Comments
 (0)
Please sign in to comment.