Skip to content

Commit e141bfa

Browse files
Merge pull request #276399 from GitHubber17/250699-a
Freshness 250699 - Azure DevTest Labs
2 parents 08e9c8f + 65f5e95 commit e141bfa

19 files changed

+213
-136
lines changed
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
11
---
2-
title: Comparing custom images and formulas
3-
description: Learn about the differences between custom images and formulas as VM bases so you can decide which one best suits your environment.
4-
ms.topic: conceptual
2+
title: Compare custom images and formulas
3+
titleSuffix: Azure DevTest Labs
4+
description: Explore the differences between custom images and formulas as virtual machine (VM) bases so you can decide which one best suits your environment.
5+
ms.topic: concept-article
56
ms.author: rosemalcolm
67
author: RoseHJM
7-
ms.date: 08/26/2021
8+
ms.date: 05/26/2024
89
ms.custom: UpdateFrequency2
10+
11+
#customer intent: As a developer, I want to know the differences between custom images and formulas as VM bases so I can choose the best approach for my environment.
912
---
1013

11-
# Compare custom images and formulas in DevTest Labs
12-
Both [custom images](devtest-lab-create-template.md) and [formulas](devtest-lab-manage-formulas.md) can be used as bases for [creating new lab virtual machines (VMs)](devtest-lab-add-vm.md). The key distinction between custom images and formulas is that a custom image is simply an image based on a virtual hard drive (VHD). A formula is
13-
an image based on a VHD plus preconfigured settings. Preconfigured settings can include VM size, virtual network, subnet, and artifacts. These preconfigured settings are set up with default values that you can override at the time of VM creation.
14+
# Compare custom images and formulas in Azure DevTest Labs
15+
16+
In Azure DevTest Labs, both [custom images](devtest-lab-create-template.md) and [formulas](devtest-lab-manage-formulas.md) can be used as bases for [creating new lab virtual machines (VMs)](devtest-lab-add-vm.md). The key distinction between custom images and formulas is that a custom image is simply an image based on a virtual hard drive (VHD). A formula is an image based on a VHD that also includes preconfigured settings. These settings can include VM size, virtual network, subnet, and artifacts. Preconfigured settings are set up with default values that you can override when you create the VM.
1417

15-
In this article, you'll learn the pros and cons of using custom images versus using formulas. You can also read [How to create a custom image from a VM](devtest-lab-create-custom-image-from-vm-using-portal.md) and [Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md).
18+
In this article, you learn the pros and cons of using custom images versus formulas. You can also read [Create a custom image from a VM](devtest-lab-create-custom-image-from-vm-using-portal.md) and [Create a formula from a VM](devtest-lab-manage-formulas.md#create-a-formula-from-a-vm) for more details.
1619

1720
## Custom image benefits
21+
1822
Custom images provide a static, immutable way to create VMs from the environment you want.
1923

2024
|Pros|Cons|
2125
|----|----|
22-
|<li>VM provisioning from a custom image is fast, as nothing changes after the VM is spun up from the image. In other words, there are no settings to apply, as the custom image is just an image without settings. <li>VMs created from a single custom image are identical.|<li>If you need to update some aspect of the custom image, you must recreate the image. |
26+
| VM provisioning from a custom image is fast. Nothing changes after you create a VM from an image. <br><br> There are no settings to apply. The custom image is just an image without settings. <br><br> VMs created from a single custom image are identical. | To update an aspect of the custom image, you must recreate the image. |
2327

2428
## Formula benefits
2529

2630
Formulas provide a dynamic way to create VMs from the configuration and settings you want.
2731

2832
|Pros|Cons|
2933
|----|----|
30-
|<li>Changes in the environment can be captured on the fly via artifacts. For example, if you want a VM installed with the latest bits from your release pipeline or to enlist the latest code from your repository, use a formula. The formula can specify an artifact that deploys the latest bits or enlists the latest code, together with the target base image. Whenever this formula is used to create VMs, the latest bits or code are deployed or enlisted to the VM. <li>Formulas can define default settings that custom images can't provide, such as VM sizes and virtual network settings. <li>The settings saved in a formula are shown as default values, but can be modified when the VM is created. |<li> Creating a VM from a formula can take more time than creating a VM from a custom image.
34+
| Changes in the environment can be captured on the fly by using artifacts. You can use a formula to create a VM installed with the latest bits from your release pipeline. A formula also works when you want to enlist the VM with the latest code from your repository. The formula can specify an artifact that deploys the latest bits or enlists the latest code, together with the target base image. Whenever you use this formula to create VMs, the latest bits or code are deployed or enlisted to the VM. <br><br> Formulas can define default settings that custom images can't provide, such as VM sizes and virtual network settings. <br><br> The settings saved in a formula are shown as default values. You can change these values when you create the VM. | Creating a VM from a formula can take more time than creating a VM from a custom image. |
3135

3236
[!INCLUDE [devtest-lab-try-it-out](../../includes/devtest-lab-try-it-out.md)]
Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,86 @@
11
---
2-
title: Configure a virtual network
3-
description: Learn how to configure an existing virtual network and subnet to use for creating virtual machines in Azure DevTest Labs.
2+
title: Add and configure virtual network
3+
titleSuffix: Azure DevTest Labs
4+
description: Learn how to add and configure an existing virtual network and subnet to use for creating virtual machines in Azure DevTest Labs.
45
ms.topic: how-to
56
ms.author: rosemalcolm
67
author: RoseHJM
7-
ms.date: 09/30/2023
8+
ms.date: 06/02/2024
89
ms.custom: UpdateFrequency2
10+
11+
#customer intent: As a developer, I want to add and configure virtual networks and subnets in Azure DevTest Labs so I can use them to create virtual machines.
912
---
1013

11-
# Add a virtual network in Azure DevTest Labs
14+
# Add virtual network in Azure DevTest Labs
1215

1316
In this article, you learn how to add a virtual network to a lab, and configure it for creating lab virtual machines (VMs).
1417

15-
Azure DevTest Labs creates a new virtual network for each lab. If you have another virtual network, such as one configured with Azure ExpressRoute or site-to-site virtual private network (VPN), you can add it to your lab. You can then create lab VMs in that virtual network.
18+
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.
1619

1720
## Add a virtual network to a lab
1821

19-
To add a configured virtual network and subnet to a lab, take the following steps:
22+
To add a configured virtual network and subnet to a lab, follow these steps:
23+
24+
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), go to your lab resource.
2025

21-
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), on the **Overview** page for your lab, select **Configuration and policies** from the left navigation.
26+
1. On the **Overview** page, expand the **Settings** section on the left menu, and select **Configuration and policies**:
2227

23-
:::image type="content" source="./media/devtest-lab-configure-vnet/policies-menu.png" alt-text="Screenshot that shows the Configuration and policies menu for a lab.":::
28+
:::image type="content" source="./media/devtest-lab-configure-vnet/policies-menu.png" alt-text="Screenshot that shows how to select the Configuration and policies option for a lab in the Azure portal." border="false" lightbox="./media/devtest-lab-configure-vnet/policies-menu.png":::
2429

25-
1. On the **Configuration and policies** page, in the left navigation under **External resources**, select **Virtual networks**.
30+
The **Activity log** view opens for the lab where you can review configuration and policies settings.
2631

27-
1. The **Virtual networks** page shows the lab's current virtual networks. Select **Add**.
32+
1. On the left menu, expand the **External resources** section, and select **Virtual networks** to view the lab's current virtual networks.
33+
34+
1. On the **Virtual networks** page, select **Add**:
2835

29-
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnet-add.png" alt-text="Screenshot that shows a lab's Virtual networks page with Add selected.":::
36+
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnet-add.png" alt-text="Screenshot that shows how to add a new virtual network for a lab in the Azure portal." lightbox="./media/devtest-lab-configure-vnet/lab-settings-vnet-add.png":::
3037

31-
1. On the **Virtual network** page, select **Select virtual network**.
38+
1. On the **Virtual network** page, choose the **Select virtual network** option:
3239

33-
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnets-vnet1.png" alt-text="Screenshot that shows Select virtual network selected on the Virtual network page.":::
40+
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnet-select.png" alt-text="Screenshot that shows to choose the Select virtual network option on the Virtual network page." lightbox="./media/devtest-lab-configure-vnet/lab-settings-vnet-select.png":::
3441

35-
1. The **Choose virtual network** page appears, showing all virtual networks in the subscription that are in the same region as the lab. Select the virtual network you want to add.
42+
1. The **Choose 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:
3643

37-
:::image type="content" source="./media/devtest-lab-configure-vnet/choose-virtual-network.png" alt-text="Screenshot that shows the Choose virtual network page with a list of virtual networks.":::
44+
:::image type="content" source="./media/devtest-lab-configure-vnet/choose-virtual-network.png" alt-text="Screenshot that shows the Choose virtual network page with a list of available virtual networks for the lab." lightbox="./media/devtest-lab-configure-vnet/choose-virtual-network.png":::
3845

39-
1. The virtual network you chose shows on the **Virtual network** page. Select **Save**.
46+
1. The virtual network that you select appears on the **Virtual network** page. Select **Save** to add the virtual network to your lab:
4047

41-
1. The virtual network appears in the list on the lab's **Virtual networks** page. When the **Status** shows as **Ready**, select the new virtual network.
48+
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnet-save.png" alt-text="Screenshot that shows how to save the selected virtual network to your lab in the Azure portal." lightbox="./media/devtest-lab-configure-vnet/lab-settings-vnet-save.png":::
4249

43-
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-subnet.png" alt-text="Screenshot that shows the added virtual network on the lab's Virtual networks page.":::
50+
1. The added virtual network appears in the list for the lab on the **Virtual networks** page. When the **Status** for the new virtual network shows as **Ready**, select the network:
4451

45-
1. The **Virtual network** page shows the subnets for the virtual network. Select a subnet to configure.
52+
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnet-ready.png" alt-text="Screenshot that shows how to select the added virtual network on the lab's Virtual networks page when the statue is ready." lightbox="./media/devtest-lab-configure-vnet/lab-settings-vnet-ready.png":::
4653

47-
1. On the **Lab Subnet** pane, select **Yes** or **No** under the following options:
54+
1. The **Virtual network** page shows the subnets for the new virtual network. Select a subnet to configure:
4855

49-
- **Use in virtual machine creation** to allow or disallow VM creation in the subnet.
50-
- **Enable shared public IP** to enable or disable a [shared public IP address](devtest-lab-shared-ip.md).
51-
- **Allow public IP creation** to allow or disallow creating public IP addresses in the subnet.
56+
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnet-subnet.png" alt-text="Screenshot that shows how to select the subnet for the new virtual network for the lab." lightbox="./media/devtest-lab-configure-vnet/lab-settings-vnet-subnet.png":::
5257

53-
1. Under **Maximum virtual machines per user**, enter 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.
58+
1. On the **Lab Subnet** pane, configure the following options:
5459

55-
1. Select **Save**.
60+
- **Use in virtual machine creation**: Allow or disallow virtual machine (VM) creation in the subnet.
61+
- **Enable shared public IP**: Enable or disable a [shared public IP address](devtest-lab-shared-ip.md).
62+
- **Allow public IP creation**: Allow or disallow creating public IP addresses in the subnet.
63+
- **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.
5664

57-
:::image type="content" source="./media/devtest-lab-configure-vnet/lab-settings-vnets-vnet2.png" alt-text="Screenshot that shows the settings for the Lab subnet pane.":::
65+
1. On the **Lab Subnet** pane, select **Save**. The **Virtual network** page refreshes to show the configured subnet for the virtual network.
5866

59-
1. On the **Virtual network** page, select **Save** again.
67+
1. On the **Virtual network** page, select **Save** to apply the virtual network subnet changes to your lab.
6068

6169
## Create VMs in a virtual network
6270

63-
If you allowed VM creation in one of the subnets, you can now create lab VMs in the added virtual network.
71+
When you allow VM creation in a subnet, you can create lab VMs in the added virtual network with these steps:
72+
73+
1. Add a lab VM and select a VM base by following the instructions in [Create and add virtual machines](devtest-lab-add-vm.md).
6474

65-
1. Follow the instructions at [Create and add virtual machines](devtest-lab-add-vm.md) to add a lab VM and select a VM base.
6675
1. On the **Create lab resource** screen, select the **Advanced settings** tab.
67-
1. Select the drop-down arrow in the **Virtual network** field, and select the virtual network you added.
68-
1. If necessary, select the drop-down arrow in the **Subnet Selector** field, and select the subnet you want.
69-
1. Proceed with VM creation.
7076

71-
## Next steps
77+
1. Expand the **Virtual network** dropdown list and select the virtual network you added.
78+
79+
1. As necessary, expand the **Subnet Selector** dropdown list and select the desired subnet.
80+
81+
1. Continue with creating the VM.
82+
83+
## Related content
7284

73-
- For more information about how to set up, use, and manage virtual networks, see the [Azure virtual network documentation](../virtual-network/index.yml).
74-
- You can deploy [Azure Bastion](https://azure.microsoft.com/services/azure-bastion) in a new or existing virtual network to enable browser connection to your lab VMs. For more information, see [Enable browser connection to DevTest Labs VMs with Azure Bastion](enable-browser-connection-lab-virtual-machines.md).
85+
- [Azure virtual network documentation](../virtual-network/index.yml)
86+
- [Enable browser connection to DevTest Labs VMs with Azure Bastion](enable-browser-connection-lab-virtual-machines.md)

0 commit comments

Comments
 (0)