Skip to content

Commit 19dc2bf

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into iot-feb-21-release
2 parents 5388233 + 9f64bed commit 19dc2bf

32 files changed

+221
-158
lines changed

articles/devtest-labs/TOC.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
href: resource-group-control.md
5656
- name: Add support info to a lab
5757
href: devtest-lab-internal-support-message.md
58-
- name: Set policies and schedules
59-
href: devtest-lab-set-lab-policy.md
6058
- name: Configure lab identity 
6159
href: configure-lab-identity.md
6260
- name: Configure a lab to use a remote desktop gateway
@@ -67,7 +65,11 @@
6765
href: enable-browser-connection-lab-virtual-machines.md
6866
- name: Configure cost management
6967
href: devtest-lab-configure-cost-management.md
70-
- name: Set auto startup for lab virtual machines
68+
- name: Set lab policies and schedules
69+
href: devtest-lab-set-lab-policy.md
70+
- name: Configure auto-shutdown of lab VMs
71+
href: devtest-lab-auto-shutdown.md
72+
- name: Set auto startup for lab VMs
7173
href: devtest-lab-auto-startup-vm.md
7274
- name: Scale your lab
7375
href: devtest-lab-scale-lab.md
@@ -129,8 +131,6 @@
129131
href: devtest-lab-resize-vm.md
130132
- name: Redeploy a VM
131133
href: devtest-lab-redeploy-vm.md
132-
- name: Configure autoshutdown of compute and lab VMs
133-
href: devtest-lab-auto-shutdown.md
134134
- name: Create and manage claimable VMs
135135
href: devtest-lab-add-claimable-vm.md
136136
- name: Configure secrets
Lines changed: 53 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,71 @@
11
---
22
title: Configure a virtual network
3-
description: Learn how to configure an existing virtual network and subnet, and use them in a VM with Azure DevTest Labs
3+
description: Learn how to configure an existing virtual network and subnet to use for creating virtual machines in Azure DevTest Labs.
44
ms.topic: how-to
5-
ms.date: 06/26/2020
5+
ms.date: 02/15/2022
66
---
77

8-
# Configure a virtual network in Azure DevTest Labs
9-
As explained in the article [Add a VM to a lab](devtest-lab-add-vm.md), when you create a VM in a lab, you can specify a configured virtual network.
10-
For example, you might need to access your corpnet resources from your VMs using the virtual network that was configured with ExpressRoute or site-to-site VPN.
8+
# Add a virtual network in Azure DevTest Labs
119

12-
This article explains how to add your existing virtual network into a lab's Virtual Network settings so that it is available to choose when creating VMs.
10+
In this article, you learn how to add a virtual network to a lab, and configure it for creating lab virtual machines (VMs).
1311

14-
> [!NOTE]
15-
> To learn about costs associated with the Azure Virtual Network service, see [Pricing for Azure Virtual Network](../virtual-network/virtual-networks-overview.md#pricing).
12+
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.
1613

17-
## Configure a virtual network for a lab using the Azure portal
18-
The following steps walk you through adding an existing virtual network (and subnet) to a lab so that it can be used when creating a VM in the same lab.
14+
## Add a virtual network to a lab
1915

20-
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
21-
1. Select **All Services**, and then select **DevTest Labs** from the list.
22-
1. From the list of labs, select the desired lab.
23-
1. On the lab's main pane, select **Configuration and policies**.
16+
To add a configured virtual network and subnet to a lab, take the following steps:
2417

25-
![Access the lab's configuration and policies](./media/devtest-lab-configure-vnet/policies-menu.png)
26-
1. In the **EXTERNAL RESOURCES** section, select **Virtual networks**. A list of virtual networks configured for the current lab is displayed as well as the default virtual network created for your lab.
27-
1. Select **+ Add**.
28-
29-
![Add an existing virtual network to your lab](./media/devtest-lab-configure-vnet/lab-settings-vnet-add.png)
30-
1. On the **Virtual network** pane, select **[Select virtual network]**.
18+
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.
19+
20+
:::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.":::
21+
22+
1. On the **Configuration and policies** page, in the left navigation under **External resources**, select **Virtual networks**.
23+
24+
1. The **Virtual networks** page shows the lab's current virtual networks. Select **Add**.
3125

32-
![Select an existing virtual network](./media/devtest-lab-configure-vnet/lab-settings-vnets-vnet1.png)
33-
1. On the **Choose virtual network** pane, select the desired virtual network. A list is displayed showing all of the virtual networks that are under the same region in the subscription as the lab.
34-
1. After selecting a virtual network, you are returned to the **Virtual network** pane. Select the subnet in the list at the bottom.
26+
:::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.":::
27+
28+
1. On the **Virtual network** page, select **Select virtual network**.
29+
30+
:::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.":::
31+
32+
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.
33+
34+
:::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.":::
35+
36+
1. The virtual network you chose shows on the **Virtual network** page. Select **Save**.
3537

36-
![Subnet list](./media/devtest-lab-configure-vnet/lab-settings-vnets-vnet2.png)
37-
38-
The Lab Subnet pane is displayed.
38+
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.
3939

40-
![Lab subnet pane](./media/devtest-lab-configure-vnet/lab-subnet.png)
41-
42-
- Specify a **Lab subnet name**.
43-
- To allow a subnet to be used in lab VM creation, select **Use in virtual machine creation**.
44-
- To enable a [shared public IP address](devtest-lab-shared-ip.md), select **Enable shared public IP**.
45-
- To allow public IP addresses in a subnet, select **Allow public IP creation**.
46-
- In the **Maximum virtual machines per user** field, specify the maximum VMs per user for each subnet. If you want an unrestricted number of VMs, leave this field blank.
47-
1. Select **OK** to close the Lab Subnet pane.
48-
1. Select **Save** to close the Virtual network pane.
40+
:::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.":::
4941

50-
Now that the virtual network is configured, it can be selected when creating a VM.
51-
To see how to create a VM and specify a virtual network, refer to the article, [Add a VM to a lab](devtest-lab-add-vm.md).
42+
1. The **Virtual network** page shows the subnets for the virtual network. Select a subnet to configure.
5243

53-
Azure's [Virtual Network Documentation](../virtual-network/index.yml) provides more information about how to use VNets, including how to set up and manage a VNet and connect it to your on-premises network.
44+
1. On the **Lab Subnet** pane, select **Yes** or **No** under the following options:
5445

55-
[!INCLUDE [devtest-lab-try-it-out](../../includes/devtest-lab-try-it-out.md)]
46+
- **Use in virtual machine creation** to allow or disallow VM creation in the subnet.
47+
- **Enable shared public IP** to enable or disable a [shared public IP address](devtest-lab-shared-ip.md).
48+
- **Allow public IP creation** to allow or disallow creating public IP addresses in the subnet.
49+
50+
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.
51+
52+
1. Select **Save**.
53+
54+
:::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.":::
55+
56+
1. On the **Virtual network** page, select **Save** again.
57+
58+
## Create VMs in a virtual network
59+
60+
If you allowed VM creation in one of the subnets, you can now create lab VMs in the added virtual network.
61+
62+
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.
63+
1. On the **Create lab resource** screen, select the **Advanced settings** tab.
64+
1. Select the drop-down arrow in the **Virtual network** field, and select the virtual network you added.
65+
1. If necessary, select the drop-down arrow in the **Subnet Selector** field, and select the subnet you want.
66+
1. Proceed with VM creation.
5667

5768
## Next steps
58-
Once you have added the desired virtual network to your lab, the next step is to [add a VM to your lab](devtest-lab-add-vm.md).
69+
70+
- For more information about how to set up, use, and manage virtual networks, see the [Azure virtual network documentation](/azure/virtual-network/index.yml).
71+
- 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).
Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,47 @@
11
---
2-
title: Create an Azure DevTest Labs custom image from a VM
3-
description: Learn how to create a custom image in Azure DevTest Labs from a provisioned VM using the Azure portal
2+
title: Create a custom image from a lab VM
3+
description: Learn how to create a custom image from a provisioned virtual machine in Azure DevTest Labs by using the Azure portal.
44
ms.topic: how-to
5-
ms.date: 06/26/2020
5+
ms.date: 02/15/2022
66
---
77

88
# Create a custom image from a VM
99

10+
In this article, you learn how to create a custom image from a provisioned Azure DevTest Labs virtual machine (VM).
11+
1012
[!INCLUDE [devtest-lab-custom-image-definition](../../includes/devtest-lab-custom-image-definition.md)]
1113

14+
The custom image includes the OS disk and all the data disks attached to the VM. Lab users can use the custom image to create identical provisioned lab VMs.
15+
1216
## Step-by-step instructions
1317

14-
You can create a custom image from a provisioned VM, and afterwards use that custom image to create identical VMs. The following steps illustrate how to create a custom image from a VM:
18+
To create a custom image from a lab VM, take the following steps:
1519

16-
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
20+
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), on your lab's **Overview** page, select the VM to use for the image from the **My virtual machines** list.
1721

18-
1. Select **All services**, and then select **DevTest Labs** from the list.
22+
:::image type="content" source="./media/devtest-lab-create-custom-image-vm/overview-page.png" alt-text="Screenshot that shows a V M selected on a lab's Overview page.":::
1923

20-
1. From the list of labs, select the desired lab.
24+
1. On the VM's **Overview** page, select **Create custom image** under **Operations** in the left navigation.
2125

22-
1. On the lab's main pane, select **My virtual machines**.
23-
24-
1. On the **My virtual machines** pane, select the VM from which you want to create the custom image.
26+
1. On the **Create custom image** page, enter a **Name** and optional **Description** for the custom image.
2527

26-
1. On the VM's management pane, select **Create custom image** under **OPERATIONS**.
28+
1. Under **Image preparation**, select one of the following options:
2729

28-
:::image type="content" source="./media/devtest-lab-create-template/create-custom-image.png" alt-text="Create custom image menu item":::
29-
1. On the **Custom image** pane, enter a name and description for your custom image. This information is displayed in the list of bases when you create a VM. The custom image will include the OS disk and all the data disks attached to the virtual machine.
30+
- **I have not generalized this virtual machine** if you haven't run [sysprep](/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview) and don't want to run sysprep on the VM when creating the custom image.
31+
- **I have already generalized this virtual machine** if you already ran sysprep on the VM.
32+
- **Generalize this virtual machine (Run sysprep)** if you haven't run sysprep and you want sysprep to be run on the VM when creating the custom image.
3033

31-
:::image type="content" source="./media/devtest-lab-create-template/create-custom-image-blade.png" alt-text="Create custom image page":::
32-
1. Select whether sysprep was run on the VM. If the sysprep was not run on the VM, specify whether you want sysprep to be run on the VM when the custom image is created.
33-
1. Select **OK** when finished to create the custom image.
34+
1. Select **OK**.
3435

35-
After a few minutes, the custom image is created and is stored inside the lab’s storage account. When a lab user wants to create a new VM, the image is available in the list of base images.
36+
:::image type="content" source="./media/devtest-lab-create-custom-image-vm/create-custom-image.png" alt-text="Screenshot that shows the Create custom image selection on a V M's Overview page.":::
3637

37-
:::image type="content" source="./media/devtest-lab-create-template/custom-image-available-as-base.png" alt-text="custom image available in list of base images":::
38+
The custom image is created and stored in the lab's storage account. The image is now available in the list of base images for creating a new lab VM.
3839

40+
:::image type="content" source="./media/devtest-lab-create-custom-image-vm/custom-image-available-as-base.png" alt-text="Screenshot that shows custom images available in the list of VM base images.":::
3941

4042
## Next steps
4143

4244
- [Add a VM to your lab](devtest-lab-add-vm.md)
45+
- [Create a custom image from a VHD file](devtest-lab-create-template.md)
46+
- [Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md)
47+
- [Create a custom image factory in Azure DevTest Labs](image-factory-create.md)
Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,49 @@
11
---
2-
title: Resize a VM in a lab
3-
description: Learn how to change the size of a virtual machine (VM) in Azure DevTest Labs based on your needs for CPU, network, or disk performance.
2+
title: Stop and resize lab VMs
3+
description: Learn how to change the size of a virtual machine (VM) in Azure DevTest Labs based on changing needs for CPU, network, or disk performance.
44
ms.topic: how-to
5-
ms.date: 06/26/2020
5+
ms.date: 02/15/2022
66
---
77

8-
# Resize a VM in a lab in Azure DevTest Labs
9-
One of the important features of Azure virtual machines is that it lets you change the size of a virtual machine (VM) based on your needs for CPU, network, or disk performance. Azure DevTest Labs supports this feature for VMs in a lab now. The resize feature adheres to the lab policy for allowed VM sizes in the lab. That is, you can change the size of a VM to only allowed sizes in the lab.
8+
# Resize a lab VM in Azure DevTest Labs
109

11-
12-
## Steps to resize a VM in a lab
13-
To resize a VM in a lab in Azure DevTest Labs, take the following steps:
10+
Azure DevTest Labs supports changing the size of a lab virtual machine (VM), based on changing needs for CPU, network, or disk performance. This article describes how to resize a lab VM.
1411

1512
> [!NOTE]
16-
> If you are connected to the VM via a remote desktop session (RDP), save your work, and disconnect from the VM before resizing it.
13+
> The resize feature complies with lab policy for [allowed VM sizes](devtest-lab-set-lab-policy.md#set-allowed-virtual-machine-sizes). You can resize a VM only to sizes that lab policy allows.
14+
15+
## Stop the VM
16+
17+
To avoid losing work, disconnect from and stop the VM before resizing it.
18+
19+
1. If you're connected to the VM through secure shell (SSH) or remote desktop session (RDP), save your work and disconnect from the VM.
20+
21+
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), on your lab's **Overview** page, select the VM you want to resize from the list under **My virtual machines**.
22+
23+
:::image type="content" source="./media/devtest-lab-resize-vm/overview-page.png" alt-text="Screenshot that shows a V M selected on a lab's Overview page.":::
24+
25+
1. On the VM's **Overview** page, select **Stop** on the toolbar.
1726

18-
1. Sign in to the [Azure portal](https://portal.azure.com).
19-
2. Select **All Services**, and then select **DevTest Labs** from the list.
20-
3. From the list of labs, select the lab that includes the VM you want to resize.
21-
4. In the left panel, select **My Virtual Machines**.
22-
5. From the list of VMs, select a VM.
23-
6. Select **Stop** on the toolbar if the VM is running. Check the status of the operation in the **Notifications** window. Wait until the VM is stopped and then close the **Notifications** window.
27+
:::image type="content" source="./media/devtest-lab-resize-vm/stop-vm.png" alt-text="Screenshot that shows selecting Stop on the Overview page for a V M.":::
2428

25-
![Stop the VM](media/devtest-lab-resize-vm/stop-vm.png)
26-
1. In the Virtual Machine page for your VM, select **Size** under **SETTINGS** in the left menu.
29+
Once the VM stops, or if the VM is already stopped, **Stop** is grayed out.
2730

28-
![Size menu](media/devtest-lab-resize-vm/size-menu.png)
29-
1. In the **Choose a size** window, browse and select a size for your VM, and click **Select**.
30-
1. Check the status of the resize operation in the **Notifications** window.
31+
## Resize the VM
3132

32-
![Resize status](media/devtest-lab-resize-vm/resize-status.png)
33-
10. After the resize operation succeeds, close the **Notifications** window.
34-
11. Select **Overview** in the left menu, and select **Restart** on the toolbar to restart the VM.
33+
1. On the VM's **Overview** page, select **Size** under **Settings** in the left navigation.
34+
35+
:::image type="content" source="./media/devtest-lab-resize-vm/size-menu.png" alt-text="Screenshot that shows selecting Size in the V M's left navigation.":::
36+
37+
1. On the **Select a VM size** screen, select a new size for your VM, and then select **Select**.
38+
39+
:::image type="content" source="./media/devtest-lab-resize-vm/select-size.png" alt-text="Screenshot that shows selecting a V M size.":::
40+
41+
You can check the status of the resize operation in the **Notifications** window.
42+
43+
:::image type="content" source="./media/devtest-lab-resize-vm/resize-status.png" alt-text="Screenshot of the Notifications window that shows resizing status.":::
44+
45+
1. When the resize finishes, start the VM by selecting **Start** from the VM's **Overview** page toolbar.
3546

3647
## Next steps
37-
For detailed information about the resize feature supported by Azure virtual machines, see [Resize virtual machines](https://azure.microsoft.com/blog/resize-virtual-machines/).
48+
49+
For more information about the resize feature for Azure VMs, see [Resize virtual machines](https://azure.microsoft.com/blog/resize-virtual-machines/).

0 commit comments

Comments
 (0)