{"id":10502,"date":"2015-11-18T08:08:20","date_gmt":"2015-11-18T08:08:20","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2015\/11\/18\/getting-started-with-devtest-labs-for-azure\/"},"modified":"2022-08-02T04:54:17","modified_gmt":"2022-08-02T12:54:17","slug":"getting-started-with-devtest-labs-for-azure","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/getting-started-with-devtest-labs-for-azure\/","title":{"rendered":"Getting Started with DevTest Labs for Azure"},"content":{"rendered":"<p>\u00a0<\/p>\n<p>The new DevTest Labs solves a ton of challenges for DevOps teams wanting to build, deploy and test builds on a regular basis. DevTest Labs makes it easier to create test environments with reusable templates with everything your team needs to start developing and testing applications. In few clicks, you can create the environments where the last good build of your application is already installed and get working right away and with easy to use artifact blade extend those VMs to include additional functionality. . DevTest Labs makes it easier to control costs. As a Lab owner, you can set spending limits on your Labs, such as number of virtual machines (VM) per user, and number of VMs per Lab and helps save money with policies to automatically shut down VMs on a schedule. DevTest labs also Integrates with your existing release pipelines; leveraging premade plug-ins or our API to provision Dev\/Test environments directly from your preferred continuous integration (CI) tool, integrated development environment (IDE) or automated release pipeline.\u00a0<\/p>\n<p>For more information please see:<\/p>\n<p><a href=\"https:\/\/azure.microsoft.com\/en-us\/campaigns\/devtest-lab\/\">https:\/\/azure.microsoft.com\/en-us\/campaigns\/devtest-lab\/<\/a><\/p>\n<h4><strong>To Get Started<\/strong><\/h4>\n<p>1&#46; <strong>Navigate to DevTest Labs<\/strong><\/p>\n<p>Start the new Azure Portal and navigate to \u201cDevTest Labs; to make this **much easier **you can use the shortcut **<a href=\"https:\/\/aka.ms\/DevTestLab\">https:\/\/aka.ms\/DevTestLab<\/a> **which takes you directly to the DevTest Labs blade.<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-top: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/4812.image_thumb_54EBB3BF.png\" width=\"330\" height=\"464\" \/><\/p>\n<p>\u00a0<\/p>\n<p>2&#46; **Create a new Lab **<\/p>\n<p>To create a lab for your environments by simply hit the\u00a0 by hitting the \u201c+ \u201c sign<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-top: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/7077.image_thumb_293AE9C3.png\" width=\"344\" height=\"299\" \/><\/p>\n<p>3&#46; <strong>Creating the Lab<\/strong><\/p>\n<p>A real value of using DevTest Labs is the ability to control and manage your Cloud spend.\u00a0 DevTest Labs enables this through properties like the ability to shut down ALL the VMs in your lab at a specified time, set the allowed VM sizes and controlling the maximum number of VMs a user or a Lab can create.<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-top: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/7573.image_thumb_56BC0986.png\" width=\"490\" height=\"413\" \/><\/p>\n<p>4&#46; <strong>Creating a VM<\/strong><\/p>\n<p>As I often teach DevOps classes i typically want to create VMs that the class can use as build agents.\u00a0 For that scenario we would select the the following parameters for your virtual machine:<\/p>\n<ul>\n<li>Visual Studio 2015 Enterprise Base <\/li>\n<li>Change the size to A2<\/li>\n<li>Add the Chocolatey artifact<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"image\" style=\"border-top: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/4336.image_thumb_13065966.png\" width=\"519\" height=\"435\" \/><\/p>\n<p>Use Chocolatey to install Azure Power Shell\u2026The package name is <strong>\u201cAzurepowershell\u201d<\/strong><\/p>\n<p><img decoding=\"async\" title=\"clip_image005\" style=\"border-top: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px\" border=\"0\" alt=\"clip_image005\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/1586.clip_image005_00BD92A4.png\" width=\"521\" height=\"574\" \/><\/p>\n<p>In many workflows you would also add a VSO build in the artifacts section (see image below) but in this case we have a chicken and the egg issue in that my classes wouldn\u2019t have created build yet.<\/p>\n<p>In future versions there will be build tasks to create Lab VMs as part of a Build or Release.\u00a0\u00a0 Future versions will also have more facilities for controlling spend and resources like Jason Zander showed at AzureCon.<\/p>\n<p><a href=\"http:\/\/www.azurecon.com\/\">http:\/\/www.azurecon.com<\/a><\/p>\n<p>\u00a0<\/p>\n<p><strong>Congrats you have completed creating an environment using DevTest Labs<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 The new DevTest Labs solves a ton of challenges for DevOps teams wanting to build, deploy and test builds on a regular basis. DevTest Labs makes it easier to create test environments with reusable templates with everything your team needs to start developing and testing applications. In few clicks, you can create the environments [&hellip;]<\/p>\n","protected":false},"author":63,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>\u00a0 The new DevTest Labs solves a ton of challenges for DevOps teams wanting to build, deploy and test builds on a regular basis. DevTest Labs makes it easier to create test environments with reusable templates with everything your team needs to start developing and testing applications. In few clicks, you can create the environments [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=10502"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10502\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=10502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=10502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=10502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}