This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
This tutorial shows Azure DevTest Labs administrators how to use the Azure portal to:
If you're a developer, tester, or trainee, seeAccess a lab in Azure DevTest Labs to learn how to claim and connect to lab VMs.
To create a lab, you need at leastContributor role in an Azure subscription. If you don't have an Azure subscription, create afree account.
To add a VM to a lab, you need at leastDevTest Labs User role in the lab.
To add users to a lab, you must haveUser Access Administrator orOwner role in the Azure subscription the lab is in.
To create a lab, follow these steps. For more information, seeQuickstart: Create a lab in the Azure portal.
In theAzure portal, search for and selectDevTest Labs.

On theDevTest Labs page, selectCreate. TheCreate DevTest Lab page appears.
On theBasic Settings tab, provide the following information:

Optionally, select theAuto-shutdown,Networking, andTags tabs at the top of the page, and customize those settings. You can also apply or change most of these settings after lab creation.
After you complete all settings, selectReview + create.
OnceSucceeded appears on theReview + create page, review the settings and then selectCreate.
Tip
SelectDownload a template for automation at the bottom of the page to view and download the lab configuration as an Azure Resource Manager (ARM) template. You can use the ARM template to create more labs. For more information, seeQuickstart: Use ARM templates to create labs in Azure DevTest Labs.
After the lab creation process finishes, selectGo to resource from the deployment notification.

To add a VM to the lab, follow these steps. For more information, seeCreate lab virtual machines in Azure DevTest Labs.
On the new lab'sOverview page, selectAdd on the toolbar.

On theChoose a base page, search for and select aWindows Server 2019 Datacenter base for the VM. Some of the following options might be different if you use a different image.
On theBasic Settings tab of theCreate lab resource screen, provide the following information:
Note
If you enable hibernation, you must also select eitherPublic orPrivate forIP Address in theAdvanced settings, because hibernation forShared IPs isn't currently supported.

Optionally, select theAdvanced Settings tab to change any of the following settings:

You can also select theTags tab to apply tags to the VM. After you configure all settings, selectCreate at the bottom of the screen.
During VM deployment, you can select theNotifications icon at the top of the screen to see progress. Creating a VM takes a while.
After the VM is created, selectClaimable virtual machines underMy Lab in the left navigation of the labOverview page to see the VM listed on theClaimable virtual machines page. SelectRefresh if the VM doesn't appear. To take ownership of a VM in the claimable list, seeUse a claimable VM.

To add users to a lab, you must be aUser Access Administrator orOwner of the subscription the lab is in. For more information, seeAdd lab owners, contributors, and users in Azure DevTest Labs.
On the lab'sOverview page in the Azure portal, underSettings, selectConfiguration and policies.
On theConfiguration and policies page, selectAccess control (IAM) from the left navigation.
SelectAdd >Add role assignment.

On theRole tab of theAdd role assignment page, select theDevTest Labs User role, and then selectNext.

On theMembers tab, selectSelect members.
On theSelect members screen, select the user or users to assign to theDevTest Labs User role, and then selectSelect.
SelectReview + assign and then selectReview + assign again to assign the role.
To share a link to the lab with your users, go to the lab home page in theAzure portal and copy the URL from your browser. Share the copied link with your lab users.
Lab users must have a Microsoft account, but they don't need an Azure account. If a lab user isn't a member of your Active Directory, they might see an error message when they try to access the shared link. If that happens, ask the user to first select their name in the upper-right corner of the Azure portal. They can then select the directory where the lab exists from theDirectory section of the menu.
You can use this lab for the next tutorial,Access a lab in Azure DevTest Labs, or for other uses. When you're done using the lab, delete it and its resources to avoid further charges.
On the labOverview page, selectDelete from the top menu.

On theAre you sure you want to delete it page, enter the lab name, and then selectDelete.
During the deletion process, you can selectNotifications at the top of your screen to view progress. Deleting a lab can take a while.
Deleting the lab removes all of the lab resources from the resource group. If you created the resource group for the lab, you can now delete the resource group. You can't delete a resource group that has a lab in it.
Deleting the resource group that contained the lab deletes all resources in the resource group. To delete the resource group:
To learn how to access the lab and VMs as a lab user, go on to the next tutorial:
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?