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 article describes how to create Azure virtual machines (VMs) in Azure DevTest Labs by using the Azure portal. You can also create DevTest Labs VMs by usingPowerShell,Azure CLI, anARM template, or from ashared image gallery.
In theAzure portal, go to theOverview page for your lab.
On the labOverview page, selectAdd.

On theChoose a base page, select an image for the VM. You can choose from Marketplace images, custom images, or formulas that the lab administrator made available. The following instructions use a Windows 11 Pro image. Some bases might have different settings.
On theBasic Settings tab of theCreate lab resource screen, provide the following information:
Note
If you enable hibernation, you must also select eitherPublic IP orPrivate IP inAdvanced Settings. Hibernation forShared IPs isn't currently supported.

The defaultVirtual machine size that appears inBasic Settings depends on the chosenImage Base architecture and the lab'sAllowed virtual machine sizes policy setting. For more information, seeSet allowed virtual machine sizes.
If the lab'sConfiguration and policies >Allowed virtual machine sizes policy allowsAll sizes:
If the lab'sConfiguration and policies >Allowed virtual machine sizes policy allows only limitedSelected sizes:
Artifacts are tools, actions, or software you can optionally add to lab VMs. You can add artifacts to VMs from theDevTest Labs public artifact repository, or from private artifact repositories connected to the lab. For more information about adding artifacts, seeAdd artifacts to DevTest Labs VMs.
You can add artifacts to VMs before or after VM creation. To add artifacts after VM creation, seeAdd artifacts to VMs after creation.
To add or configure artifacts during VM creation:
At the bottom of theBasic Settings tab of theCreate lab resource screen, selectAdd or Remove Artifacts.
On theAdd artifacts page, select the arrow next to each artifact you want to add to the VM.
On eachAdd artifact pane, enter any required and optional parameter values, and then selectOK. The artifact appears underSelected artifacts, and the number of configured artifacts updates.

When you're done adding artifacts, selectOK on theAdd artifacts page.
After you configure basic settings and artifacts, you can optionally configure advanced settings and tags for your VM.
Optionally, selectNext: Advanced Settings or theAdvanced Settings tab on theCreate lab resource screen, and change any of the following values:

Optionally, selectNext: Tags or theTags tab to apply tags to the VM.
After you configure all settings, selectCreate at the bottom of theCreate lab resource screen. During VM deployment, you can select theNotifications icon at the top of the screen to see progress. Creating a VM takes a while.
When the deployment is complete, if you kept yourself as VM owner, the VM appears underMy virtual machines on the labOverview page. To connect to the VM, select it from the list, and then selectConnect on the VM'sOverview page.
Or, if you choseMake this machine claimable during VM creation, selectClaimable virtual machines in the left navigation 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.

When you create a VM in DevTest Labs, you automatically have permission to access that VM, and you can see the VM listed both on the labOverview page and theAll resources page.
DevTest Labs users in theOwner andContributor roles can see all lab VMs on the lab'sAll Resources page. Users in theDevTest Labs User role can't access other users' VM resources by default, so they don't automatically see those VMs on theAll resources page.
You can copy existing Azure VMs to DevTest Labs as follows:
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?