In this lab, we will be setting up your lab environment by using DevTestLabs on Azure. To do this, you will be using an Azure Resource Manager template which will provision the DevTest Lab for you, together with your very first Virtual Machine with Visual Studio and a private VSTS agent.
-
An active Azure subscription on a personal AD (Not the Avanade AD).
- Visit the Azure Portal
-
An active Visual Studio Team Services account.
-
Install Azure PowerShell on your local machine
-
Download the devtestlabs demo directory or clone this entire repository to your local filesystem with Git.
-
Run Windows PowerShell ISE as an administrator and open ProvisionDemoLab.ps1.
-
Edit the variables in the top part of this script to your personal preference. Make sure the subscription name is the name of an actual subscription on your Azure account:
$subscriptionName = "<YourSubscriptionName>" $vstsAgentVmName = "<YourVmName>" $vstsAccountName = "<YourVstsAccountName>" $vstsPAT = "<YourPat>"
-
Run the script (F5) to start deploying this template to Azure. Wait for the operation to complete before closing the PowerShell ISE.
-
Go to your Azure Portal and open your DevTestLab.
-
Follow these steps to claim your first VM.
-
Once it is created, you can connect to the VM by selecting Connect on its management pane.