Skip to content

Commit a43770d

Browse files
committed
edits
1 parent a4a59ce commit a43770d

File tree

7 files changed

+38
-32
lines changed

7 files changed

+38
-32
lines changed
-32.4 KB
Loading
-25.9 KB
Loading
-4.86 KB
Loading
62.3 KB
Loading
5.46 KB
Loading
87.7 KB
Loading

articles/devtest-labs/network-isolation.md

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Network isolation
2+
title: Create a network isolated lab
33
description: Learn how to enable and configure network isolation for labs in Azure DevTest Labs.
44
ms.topic: how-to
55
ms.author: rosemalcolm
@@ -8,46 +8,54 @@ ms.custom: UpdateFrequency2
88
ms.date: 03/31/2025
99
---
1010

11-
# Network isolation in Azure DevTest Labs
11+
# Configure network isolation in Azure DevTest Labs
1212

1313
By default, Azure DevTest Labs creates a new [Azure virtual network](/azure/virtual-network/virtual-networks-overview) for each lab. The virtual network acts as a security boundary to isolate lab resources from the public internet.
1414

1515
If your organizational networking policies require it, you can isolate all lab resources to a selected virtual network. This article walks you through how to create or configure a network-isolated lab in DevTest Labs.
1616

17-
You can use these networking options:
17+
You can use network isolation to implement these networking options:
1818

1919
- Isolate all lab [virtual machines (VMs)](devtest-lab-configure-vnet.md) and [environments](connect-environment-lab-virtual-network.md) in a preexisting virtual network that you select.
2020
- Completely isolate the lab, including VMs, environments, the lab storage account, and key vaults, to a selected virtual network.
21-
22-
You can also join an Azure virtual network to an on-premises network to securely connect to on-premises resources. For more information, see [DevTest Labs enterprise reference architecture: Connectivity components](devtest-lab-reference-architecture.md#connectivity-components).
21+
- Join an Azure virtual network to an on-premises network to securely connect to on-premises resources. For more information, see [DevTest Labs enterprise reference architecture: Connectivity components](devtest-lab-reference-architecture.md#connectivity-components).
2322

2423
## Prerequisites
2524

2625
- **Owner** or **Contributor** permissions in the Azure subscription that contains the lab.
2726

2827
## Enable network isolation
2928

30-
You can use the Azure portal to enable network isolation only during lab creation. To convert an existing lab and associated lab resources to isolated network mode, use the PowerShell script [Convert-DtlLabToIsolatedNetwork.ps1](https://github.com/Azure/azure-devtestlab/blob/master/Tools/ConvertDtlLabToIsolatedNetwork/Convert-DtlLabToIsolatedNetwork.ps1).
29+
You can use the Azure portal to enable network isolation only during lab creation. To convert an existing lab and its resources to isolated network mode, use the PowerShell script [Convert-DtlLabToIsolatedNetwork.ps1](https://github.com/Azure/azure-devtestlab/blob/master/Tools/ConvertDtlLabToIsolatedNetwork/Convert-DtlLabToIsolatedNetwork.ps1).
3130

3231
During lab creation, you can enable network isolation for the default lab virtual network, or for another, preexisting virtual network that you use for the lab.
3332

34-
To enable network isolation for the lab:
33+
## Enable network isolation for the default virtual network
34+
35+
To create the lab in the default virtual network and enable network isolation:
3536

3637
1. During [lab creation](devtest-lab-create-lab.md), select the **Networking** tab on the **Create DevTest Lab** screen.
37-
1. On the **Networking** screen, **Default** appears next to **Virtual Network**.
38+
1. On the **Networking** screen, leave **Virtual Network** set to **Default**. Select **Yes** next to **Isolate lab resources**, and finish creating the lab.
39+
40+
:::image type="content" source="./media/network-isolation/isolate-lab-resources.png" alt-text="Screenshot that shows enabling network isolation for the default network.":::
3841

39-
- To create the lab in the default virtual network and enable network isolation, select **Yes** next to **Isolate lab resources**, and finish creating the lab.
40-
:::image type="content" source="./media/network-isolation/isolate-lab-resources.png" alt-text="Screenshot that shows enabling network isolation for the default network.":::
41-
- To use a different, existing virtual network for the lab, and enable network isolation for that network:
42-
1. Select a network other than **Default** from the dropdown list next to **Virtual Network**. The list only shows networks in the same region and subscription as the lab.
43-
:::image type="content" source="./media/network-isolation/create-lab.png" alt-text="Screenshot that shows selecting a virtual network.":::
44-
1. Select a subnet.
45-
:::image type="content" source="./media/network-isolation/create-lab-subnet.png" alt-text="Screenshot that shows selecting a subnet and selecting Yes for network isolation.":::
46-
1. Next to **Isolate lab resources**, select **Yes**, and finish creating the lab.
42+
If you enable network isolation for the default network, no further action is needed. The lab handles isolating resources from now on.
4743

48-
If you enabled network isolation for the default network, no further action is needed. The lab handles isolating resources from now on.
44+
## Enable network isolation for a different virtual network
4945

50-
If you enabled network isolation for a different network than the default, complete the following instructions to configure service endpoints for network access.
46+
To use a different, existing virtual network for the lab, and enable network isolation for that network:
47+
48+
1. During [lab creation](devtest-lab-create-lab.md), select the **Networking** tab on the **Create DevTest Lab** screen.
49+
1. On the **Networking** screen, select a network other than **Default** from the dropdown list next to **Virtual Network**. The list only shows networks in the same region and subscription as the lab.
50+
51+
:::image type="content" source="./media/network-isolation/create-lab.png" alt-text="Screenshot that shows selecting a virtual network.":::
52+
53+
1. Select a subnet.
54+
:::image type="content" source="./media/network-isolation/create-lab-subnet.png" alt-text="Screenshot that shows selecting a subnet and selecting Yes for network isolation.":::
55+
56+
1. Select **Yes** next to **Isolate lab resources**, and finish creating the lab.
57+
58+
If you enable network isolation for a different network than the default, complete the following instructions to configure service endpoints for network access.
5159

5260
<a name="steps-to-follow-post-lab-creation"></a>
5361
## Configure service endpoints
@@ -58,31 +66,29 @@ If you enabled network isolation for a virtual network other than the default, c
5866

5967
1. On the lab's **Overview** page, select **Resource visualizer**.
6068

61-
![Screenshot that shows selecting the resource group for a lab.](./media/network-isolation/contoso-lab.png)
62-
6369
1. On the **Resource visualizer** page, select the lab's storage account. The lab storage account is named `a<labName><4-digit number>`. For example, if the lab name is `Fabrikam`, the storage account name could be `afabrikam1234`.
6470

6571
![Screenshot that shows selecting the lab storage account.](./media/network-isolation/contoso-test.png)
6672

6773
1. On the storage account page, expand **Security + networking** and select **Networking** from the left navigation menu.
6874

69-
1. On the **Firewalls and virtual networks** tab, ensure that:
70-
- **Enabled from selected virtual networks and IP addresses** is selected.
71-
- **Allow Azure services on the trusted services list to access this storage account** at the bottom of the page is selected. DevTest Labs is a [trusted Microsoft service](/azure/storage/common/storage-network-security#trusted-microsoft-services), so selecting this option lets the lab operate normally in a network isolated mode.
75+
1. On the **Firewalls and virtual networks** tab, ensure that **Enabled from selected virtual networks and IP addresses** is selected, and select **Add existing virtual network**..
7276

73-
1. Select **Add existing virtual network**.
77+
:::image type="content" source="./media/network-isolation/add-existing-virtual-network.png" alt-text="Screenshot that shows the resource group networking pane with add existing virtual network highlighted.":::
7478

7579
1. On the **Add networks** pane, select the virtual network and subnet you chose when you created the lab, and then select **Enable**.
7680

77-
:::image type="content" source="./media/network-isolation/add-existing-virtual-network.png" alt-text="Screenshot that shows the resource group networking pane with add existing virtual network highlighted.":::
81+
:::image type="content" source="./media/network-isolation/contoso-lab.png" alt-text="Screenshot that shows the resource group networking pane with add existing virtual network highlighted.":::
7882

7983
1. Once the service endpoint is successfully enabled, select **Add**.
8084

8185
:::image type="content" source="./media/network-isolation/allow-trusted-services.png" alt-text="Screenshot that shows allowing trusted services access to a resource group.":::
8286

83-
1. On the **Networking** page, select **Save**.
87+
1. On the **Networking** page, ensure that **Allow Azure services on the trusted services list to access this storage account** at the bottom of the page is selected. DevTest Labs is a [trusted Microsoft service](/azure/storage/common/storage-network-security#trusted-microsoft-services), so selecting this option lets the lab operate normally in a network isolated mode.
8488

85-
:::image type="content" source="./media/network-isolation/add-network-pane.png" alt-text="Screenshot that shows the added network with Save highlighted.":::
89+
1. Select **Save**.
90+
91+
:::image type="content" source="./media/network-isolation/allow-trusted-services.png" alt-text="Screenshot that shows allowing trusted services access to a resource group.":::
8692

8793
Azure Storage now allows inbound connections from the added virtual network, which enables the lab to operate successfully in a network isolated mode.
8894

@@ -107,24 +113,24 @@ You can automate these steps with PowerShell or Azure CLI to configure network i
107113
:::image type="content" source="./media/network-isolation/key-vault-enable-network.png" alt-text="Screenshot that shows enabling a virtual network and subnet in a key vault.":::
108114

109115
1. Once the service endpoint is successfully enabled, select **Add**.
110-
111-
:::image type="content" source="./media/network-isolation/key-vault-add-network.png" alt-text="Screenshot that shows adding a virtual network and subnet in a key vault.":::
112116

113-
1. On the **Networking** page, select **Save**.
117+
1. On the **Networking** page, select **Apply**.
118+
119+
:::image type="content" source="./media/network-isolation/key-vault-add-network.png" alt-text="Screenshot that shows adding a virtual network and subnet in a key vault.":::
114120

115121
## Use a network-isolated lab
116122

117123
Here are some things to remember when using a lab in a network isolated mode:
118124

119125
### Enable access to the storage account from outside the lab
120126

121-
The lab administrator must explicitly enable access to the network isolated lab's storage account from an allowed endpoint. Actions like uploading a VHD to the storage account for creating custom images require this access. You can enable access by creating a lab VM and securely accessing the lab's storage account from that VM.
127+
The lab administrator must explicitly enable access to the network isolated lab's storage account from an allowed endpoint. Actions like uploading a virtual hard disk (VHD) to the storage account for creating custom images require this access. You can enable access by creating a lab virtual machine (VM) and securely accessing the lab's storage account from that VM.
122128

123129
For more information, see [Connect to a storage account using an Azure Private Endpoint](/azure/private-link/tutorial-private-endpoint-storage-portal).
124130

125131
### Provide storage account to export lab usage data
126132

127-
To [export usage data](personal-data-delete-export.md) for a network isolated lab, the lab owner must explicitly provide a storage account and generate a blob within the account to store the data. Exporting usage data fails in network isolated mode if the user doesn't explicitly provide the storage account to use.
133+
To [export usage data](personal-data-delete-export.md) for a network isolated lab, the lab administrator must explicitly specify a storage account and generate a blob within the account to store the data. Exporting usage data fails in network isolated mode if the user doesn't explicitly specify the storage account to use.
128134

129135
For more information, see [Export or delete personal data from Azure DevTest Labs](personal-data-delete-export.md).
130136

0 commit comments

Comments
 (0)