Skip to content

Commit 4256a9f

Browse files
authored
Merge pull request #178078 from dagiro/NewTemplate
NewTemplate - Quickstart: Use an ARM template to create a lab in DevTest Labs
2 parents 3345994 + 17c9247 commit 4256a9f

16 files changed

+41
-49
lines changed

articles/devtest-labs/create-lab-windows-vm-template.md

Lines changed: 41 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,102 +3,94 @@ title: Create a lab in Azure DevTest Labs by using an Azure Resource Manager tem
33
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.
44
ms.topic: quickstart
55
ms.custom: subject-armqs
6-
ms.date: 10/15/2021
6+
ms.date: 10/29/2021
77
---
88

99
# Quickstart: Use an ARM template to create a lab in DevTest Labs
1010

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).
1212

1313
[!INCLUDE [About Azure Resource Manager](../../includes/resource-manager-quickstart-introduction.md)]
1414

15-
In this quickstart, you do the following actions:
15+
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.
1616

17-
> [!div class="checklist"]
18-
> * Review the template.
19-
> * Deploy the template.
20-
> * Verify the deployment.
21-
> * Clean up resources.
17+
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](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)
2218

2319
## Prerequisites
2420

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.
2622

2723
## Review the template
2824

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).
3026

31-
- [Microsoft.DevTestLab/labs](/azure/templates/microsoft.devtestlab/labs)
32-
- [Microsoft.DevTestLab labs/virtualnetworks](/azure/templates/microsoft.devtestlab/labs/virtualnetworks)
33-
- [Microsoft.DevTestLab labs/virtualmachines](/azure/templates/microsoft.devtestlab/labs/virtualmachines)
27+
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.devtestlab/dtl-create-lab-windows-vm-claimed/azuredeploy.json":::
3428

35-
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.devtestlab/dtl-create-lab-windows-vm/azuredeploy.json":::
29+
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.
3634

3735
For more ARM template samples, see [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Devtestlab).
3836

3937
## Deploy the template
4038

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-
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](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.
4440

45-
1. On the **Creates a lab in Azure DevTest Labs with a Windows Server VM** screen, fill out the following items:
41+
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](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)
4642

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:
5344

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.|
5556

5657
:::image type="content" source="./media/create-lab-windows-vm-template/deploy-template-page.png" alt-text="Screenshot of the Create a lab page.":::
5758

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.
6060

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
6262

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**.
6464

6565
:::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.":::
6666

6767
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.
6868

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.":::
7070

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**.
7272

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.":::
7474

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`.
7676

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.":::
8078

8179
## Clean up resources
8280

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:
8882

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.
9084

91-
1. On the confirmation page, type the lab name, and then select **Delete**.
85+
1. From the top menu, select **Delete**.
9286

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.":::
9488

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**.
9690

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.
9892

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.
10294

10395
## Next steps
10496
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:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6.16 KB
Loading
-19.8 KB
Loading

0 commit comments

Comments
 (0)