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.
You can find all the packages you need in Chocolatey repository. For this demo, I’m going to install the following applications.
Just add the packages names and deploy the VM.
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.
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 :-).