Azure DevTest Labs is available in UK South and UK West as from December 2016, in addition to the other 21 regions it has supported.
The steps to create the DevTest lab are
- Login to Azure portal as administrator
- Click the green + New menu
- Type DevTest Labs into the search box
- Select DevTestLabs from the results page
- Click on Create from the Description page.
The advantages using DevTest Labs as mentioned from the Description page are
DevTest Labs helps developers and testers to quickly create virtual machines in Azure to deploy and test their applications. You can easily provision Windows and Linux machines using reusable templates while minimizing waste and controlling cost.
- Quickly provision development and test virtual machines
- Minimize waste with quotas and policies
- Set automated shutdowns to minimize costs
- Create a VM in a few clicks with reusable templates
- Get going quickly using VMs from pre-created pools
- Build Windows and Linux virtual machines
- Enter the lab name, select the subscription, select location North Europe, tick the Pin to Dashboard tick box and alternatively update the Auto-shutdown schedule.
- Click on Create.
- The dashboard is displayed with a new tile showing that the DevTest Lab is being deployed.
- The DevTest Lab page is displayed once deployment of the DevTest Lab is completed.
Instead of using the Portal, PowerShell can be used to create Azure DevTest Lab. The GitHub repository https://github.com/Azure/azure-devtestlab/tree/master/Samples/ProvisionDemoLab provides an example how it can be achieved.
The repository has a readme file, a deployment template with a corresponding parameters file and a PowerShell script to execute the deployment.
The Readme file provides a description of the resources created.
About the resources created in the Demo Lab:
The ARM template creates a demo lab with the following things:
* It sets up all the policies and a private artifact repo.
* It creates 3 custom VM images/templates.
* It creates 4 VMs, and 3 of them are created with the new custom VM images/templates.
To run the PowerShell script the subscriptionId is required. This can be obtained from the cmdlet Login-AzureRmAccount.
The PowerShell is run as below
.\ProvisionDemoLab.ps1 -SubscriptionId 41111111-1111-1111-1111-111111111111 -ResourceGroupLocation northeurope -ResourceGroupName RTestLab
The script produces the following results.
From the portal , the result shows the 4 vms.
The repositories have been created as well.
Custom images of the running machines have been created as well.
There are artifacts ready to be used though none are applied yet to the virtual machines.
You can create your own templates/parameters files in the Portal by creating a new resource and exporting instead of executing the configuration in the GitHub repository.