Creating Virtual Machines with Artifacts in DevTest Labs

Introduction

Step 1: Creating Lab VM

Step 2: Choosing Artifact from the list

Step 3: Choosing another Artifact from the list

Step 4: Finish Artifacts settings and create a Virtual Machine

Conclusion


Introduction

Azure DevTest Labs is a self-service sandbox environment in Microsoft Azure, which allows developers and testers to quickly create test environments while minimizing waste and controlling costs. It is a free and very powerful service, which enable users to quickly create pre-provision environment with everything that their team need to develop and test the project in just few clicks. Testing of the latest application versions can be done through reusable templates and artifacts.

Artifacts are the pieces that can be deployed or configured after a new Virtual Machine is already provisioned. They can be tools for installation on Virtual Machine, applications for testing or actions that user wants to run on Virtual Machine, such as a script to call the source repository.

Azure DevTest Lab has been launched with many installed artifacts which are very simple in process of creating Virtual Machine. Azure DevTest Labs also enables creation of own artifacts for your particular scenario.

Step 1: Creating Lab VM

When Virtual Machine is created DevTest Labs Artifacts allow you to define all actions, which are performed in that process.

1. In Microsoft Azure portal navigate to DevTest Labs and select the Lab in which you want to create new Virtual Machine. On the lab’s blade click on create Lab VM icon.
2. In new column, on the right side type the Lab VM name.
3. Click on Base Image from the list.
4. Another new column will open on the right side of portal. Choose a Windows Base Image.

1-Creating VMs with artifacts in DevTest Labs

Step 2: Choosing Artifact from the list

1. When you selected the image, type in User Name and Password.
2. You will see that the Artifact is enabled. Click on the Artifact to take a deeper look in to it.
3. New column on the right side will appear, which will show the list of all new Artifacts which you can apply to new Virtual Machine that you are going to create. In this list you will see the names, description and repository of each Artifact that works in this case for Windows. Also for this case choose the Fiddler4 Artifact by clicking on it.
4. After you click on chosen Artifact on the right side new column will appear with description telling with which package manager this Artifact will be installed. In the lower right corner click on Add button to add it.

2-Choosing Artifact from the list in DevTest Labs

Step 3: Choosing another Artifact from the list

1. Choose another Artifact to download a job from Visual Studio Online.
2. This Artifact will take four parameters: VSO Project URL, Build Definition Name, Personal Access Token (which you can create in VSO by going to security tab in your profile page) and Path to Script. Once you’ve inserted all required data, click on the Add button in lower right corner.

3-Choosing another Artifact from the list in DevTest Labs

Step 4: Finish Artifacts settings and create a Virtual Machine

1. In the Add Artifacts blade, now we see that two Artifacts were selected. Click on them to check which two Artifacts were just added.
2. In the Selected Artifacts blade you will see added Artifacts. From here you can drag and drop them to change the order or even delete them. Click Ok button in lower right corner to finish the Artifact settings. In the Add Artifact blade click on the Ok button and in Lab VM blade click on Create button to create a Virtual Machine.

4-1 Finish Artifacts settings in DevTest Labs

3. When the Virtual Machine is created, you will get both Artifacts installed on it as well.

4-2 Creating a Virtual Machine in DevTest Labs

Conclusion

This post described the basic about Artifact and how to create VMs with artifacts in DevTest Labs. The process is pretty simple and has many functionalities that adds more value for the user. Features are very easy, fast and very accessible.

Share This: