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/devtest-labs/create-lab-windows-vm-template.md
+41-49Lines changed: 41 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,102 +3,94 @@ title: Create a lab in Azure DevTest Labs by using an Azure Resource Manager tem
3
3
description: In this quickstart, you create a lab in Azure DevTest Labs by using an Azure Resource Manager template (ARM template). A lab admin sets up a lab, creates VMs in the lab, and configures policies.
4
4
ms.topic: quickstart
5
5
ms.custom: subject-armqs
6
-
ms.date: 10/15/2021
6
+
ms.date: 10/29/2021
7
7
---
8
8
9
9
# Quickstart: Use an ARM template to create a lab in DevTest Labs
10
10
11
-
In this quickstart, you use an Azure Resource Manager template (ARM template) to create a lab in Azure DevTest Labs. The lab contains a Windows Server 2019 Datacenter virtual machine (VM).
11
+
This quickstart describes how to use an Azure Resource Manager template (ARM template) to create a lab in Azure DevTest Labs. The lab contains a Windows Server 2019 Datacenter virtual machine (VM).
If your environment meets the prerequisites and you're familiar with using ARM templates, select the **Deploy to Azure** button. The template will open in the Azure portal.
16
16
17
-
> [!div class="checklist"]
18
-
> * Review the template.
19
-
> * Deploy the template.
20
-
> * Verify the deployment.
21
-
> * Clean up resources.
17
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.devtestlab%2Fdtl-create-lab-windows-vm-claimed%2Fazuredeploy.json)
22
18
23
19
## Prerequisites
24
20
25
-
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
21
+
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
26
22
27
23
## Review the template
28
24
29
-
This quickstart uses the [Creates a lab in Azure DevTest Labs with a Windows Server VM](https://azure.microsoft.com/resources/templates/dtl-create-lab-windows-vm/) template. The template defines the following resources:
25
+
The template used in this quickstart is from [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Devtestlab).
Three Azure resources are defined in the template:
30
+
31
+
-[Microsoft.DevTestLab/labs](/azure/templates/microsoft.devtestlab/labs): create a DevTest Labs lab.
32
+
-[Microsoft.DevTestLab labs/virtualnetworks](/azure/templates/microsoft.devtestlab/labs/virtualnetworks): create a DevTest Labs virtual network.
33
+
-[Microsoft.DevTestLab labs/virtualmachines](/azure/templates/microsoft.devtestlab/labs/virtualmachines): create a DevTest Labs virtual machine.
36
34
37
35
For more ARM template samples, see [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Devtestlab).
38
36
39
37
## Deploy the template
40
38
41
-
1. Select the following **Deploy to Azure** button to use the ARM template. The template opens the lab creation screen in the Azure portal:
42
-
43
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.devtestlab%2Fdtl-create-lab-windows-vm%2Fazuredeploy.json)
39
+
1. Select the **Deploy to Azure** button below to sign in to Azure and open the ARM template.
44
40
45
-
1. On the **Creates a lab in Azure DevTest Labs with a Windows Server VM** screen, fill out the following items:
41
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.devtestlab%2Fdtl-create-lab-windows-vm-claimed%2Fazuredeploy.json)
46
42
47
-
-**Resource group**, create a new resource group so it's easy to clean up later.
48
-
-**Region**, select a location for the resource group.
49
-
-**Lab Name**, enter a name for the new lab instance.
50
-
-**Vm Name**, enter a name for the VM to create.
51
-
-**User Name**, enter a name for the user who can access the VM.
52
-
-**Password**, enter a password for the user.
43
+
1. Enter or select the following values:
53
44
54
-
1. Select **Review + create**, and when validation passes, select **Create**.
45
+
|Property | Description |
46
+
|---|---|
47
+
|Subscription| From the drop-down list, select the Azure subscription to be used for the lab.|
48
+
|Resource group| From the drop-down list, select your existing resource group, or select **Create new**.|
49
+
|Region | The value will autopopulate with the location used for the resource group.|
50
+
|Lab Name| Enter a lab name unique for the subscription.|
51
+
|Location| Leave as is. |
52
+
|Vm Name| Enter a VM name unique for the subscription.|
53
+
|Vm Size | Leave as is. |
54
+
|User Name | Enter a user name for the VM.|
55
+
|Password| Enter a password between 8 and 123 characters long.|
55
56
56
57
:::image type="content" source="./media/create-lab-windows-vm-template/deploy-template-page.png" alt-text="Screenshot of the Create a lab page.":::
57
58
58
-
## Validate the deployment
59
-
1. During the deployment, you can select **Notifications** at the top of your screen, and select **Deployment in progress** to see the deployment **Overview** page. Deployment, especially creating a VM, takes a while.
59
+
1. Select **Review + create**, and when validation passes, select **Create**. You'll then be taken to the deployment **Overview** page where you can monitor progress. Deployment times will vary based on the selected hardware, base image, and artifacts. The deployment time for the configurations used in this template is approximately 12 minutes.
60
60
61
-
:::image type="content" source="./media/create-lab-windows-vm-template/deployment-notification.png" alt-text="Screenshot showing the deployment in progress.":::
61
+
## Validate the deployment
62
62
63
-
1.When the deployment is complete, select **Go to resource group**to go to the resource group for your lab.
63
+
1.Once the deployment is complete, select **Go to resource group**from either the template **Overview** page or from **Notifications**.
64
64
65
65
:::image type="content" source="./media/create-lab-windows-vm-template/navigate-resource-group.png" alt-text="Screenshot that shows deployment complete and the Go to resource group button.":::
66
66
67
67
1. The **Resource group** page lists the resources in the resource group, including your lab and its dependent resources like virtual networks and VMs. Select your **DevTest Lab** resource to go to your lab's **Overview** page.
68
68
69
-
1. On your lab's **Overview** page, select **Claimable virtual machines**.
69
+
:::image type="content" source="./media/create-lab-windows-vm-template/resource-group-overview.png" alt-text="Screenshot of resource group overview.":::
70
70
71
-
:::image type="content" source="./media/create-lab-windows-vm-template/lab-home-page.png" alt-text="Screenshot that shows the lab Overview page with the Claimable virtual machines link.":::
71
+
1. On your lab's **Overview**page, you can see your VM under section **My virtual machines**.
72
72
73
-
1. On the **Claimable virtual machines**page, select the **More options** ellipsis next to the VM, and select **Claim machine**.
73
+
:::image type="content" source="./media/create-lab-windows-vm-template/lab-home-page.png" alt-text="Screenshot that shows the lab Overview page with the virtual machine.":::
74
74
75
-
:::image type="content" source="./media/create-lab-windows-vm-template/claim-vm.png" alt-text="Screenshot that shows the Claimable virtual machines page with the Claim machine option.":::
75
+
1. Step back and list the resource groups for your subscription. Observe that the deployment created a new resource group to hold the VM. The syntax is the lab name + VM name + random numbers. Based on the values used in this article, the autogenerated name is `MyOtherLab-myVM-173385`.
76
76
77
-
1. On the lab **Overview** page, confirm that the VM appears under **My virtual machines** with status **Starting**. Wait for the status to change to **Running**.
78
-
79
-
:::image type="content" source="./media/create-lab-windows-vm-template/lab-vm.png" alt-text="Screenshot that shows the lab Overview page with the V M listed.":::
77
+
:::image type="content" source="./media/create-lab-windows-vm-template/resource-group-list.png" alt-text="Screenshot of resource group list.":::
80
78
81
79
## Clean up resources
82
80
83
-
Delete the quickstart resources to avoid charges for running the lab and VM on Azure. If you plan to go through the next tutorial to access the VM in the lab, you can clean up the resources after you finish that tutorial.
84
-
85
-
You can't delete a resource group with a lab in it. First delete the lab so you can delete the resource group.
86
-
87
-
1. From the lab's home page, select **Delete** on the toolbar.
81
+
Delete resources to avoid charges for running the lab and VM on Azure. If you plan to go through the next tutorial to access the VM in the lab, you can clean up the resources after you finish that tutorial. Otherwise, follow these steps:
88
82
89
-
:::image type="content" source="./media/create-lab-windows-vm-template/delete-lab-button.png" alt-text="Screenshot that shows the Delete button on the lab home page.":::
83
+
1. Return to the home page for the lab you created.
90
84
91
-
1.On the confirmation page, type the lab name, and then select **Delete**.
85
+
1.From the top menu, select **Delete**.
92
86
93
-
1. During the deletion, you can select **Notifications** at the top of your screen to view progress. Deleting the lab takes awhile.
87
+
:::image type="content" source="./media/create-lab-windows-vm-template/portal-lab-delete.png" alt-text="Screenshot of lab delete button.":::
94
88
95
-
1.Once the lab is deleted, select the **Resource group**on the lab's home page. If the lab's home page is no longer available, search for **Resource groups**in the Azure search box, and then select the resource group that contained your lab.
89
+
1.On the **Are you sure you want to delete it** page, enter the lab name in the text box and then select **Delete**.
96
90
97
-
:::image type="content" source="./media/create-lab-windows-vm-template/confirm-lab-deletion.png" alt-text="Screenshot that shows deletion confirmation in notifications.":::
91
+
1. During the deletion, you can select **Notifications** at the top of your screen to view progress. Deleting the lab takes a while. Continue to the next step once the lab is deleted.
98
92
99
-
1. On the **Resource group** page, select **Delete resource group** from the toolbar. On the confirmation page, type the resource group name, and select **Delete**. You can check notifications to confirm that the resource group is deleted.
100
-
101
-
:::image type="content" source="./media/create-lab-windows-vm-template/delete-resource-group-button.png" alt-text="Screenshot that shows the Delete resource group button.":::
93
+
1. If you created the lab in an existing resource group, then all of the lab resources have been removed. If you created a new resource group for this tutorial, it's now empty and can be deleted. It wouldn't have been possible to have deleted the resource group earlier while the lab was still in it.
102
94
103
95
## Next steps
104
96
In this quickstart, you created a lab that has a VM. To learn how to access the lab and VM, advance to the next tutorial:
0 commit comments