Azure DevTest Labs Chocolatey Artifacts Integration

Lately I’ve been playing around with Azure DevTest labs. This is a great way for provisioning rapidly deployed policy-driven environments in Azure for developers, testing, QA, DevOps and other teams in the organization.

Azure DevTest Labs provides some nice features and capabilities such as VM Size policy, auto start/shutdown, cost management and some more. I hope to get a chance to do a blog post series on this topic but for now let’s touch base on DevTest Artifact repositories and specifically Chocolatey integration. Taken from their website, this is how Chocolatey description looks like:

Chocolatey is a package manager for Windows (like apt-get or yum but for Windows). It was designed to be a decentralized framework for quickly installing applications and tools that you need. It is built on the NuGet infrastructure currently using PowerShell as its focus for delivering packages from the distros to your door, err computer.”

That’s all nice and dandy but let’s see how it all works with DevTest Labs.

First you will need to deploy a DevTest lab which I already did.

Disclaimer: It is also possible to do this outside of the lab on a standard IaaS Windows virtual machines but that’s out of scope for this post.

Let’s start by creating a new Windows Server 2012 R2 Datacenter VM with all it’s parameters in our lab. Choose the “Install Chocolatey Packages” in the Artifacts section.

01

You can find all the packages you need in Chocolatey repository. For this demo, I’m going to install the following applications.

02

Just add the packages names and deploy the VM.

03

You can see that after the VM OS has been created and just before it will be ready for the end-user to use, the deployment status will indicate the artifact with the Chocolatey packages is now being deployed.

04

That’s it! Once the VM is up & running all you have to do now is login to your VM and start using your apps. Cool stuff  :-).

05

06

Be the first to comment

Leave a Reply