Inside Out

Notes on seeking wisdom and crafting software.

And a VM in the clouds

So we got our shiny new box setup with vagrant-azure. It was as easy as a few commands…

sudo pacman -S vagrant vagrant plugin install vagrant-azure vagrant box add azure create our configurationmkdir azure-vm vagrant init gvim VagrantFile# create bunch of certificates for azure management and winrm# see up --provider=azure

Here's the gist for a [sample config](

If you're not sure which `vm_image` to use, you can get the list with `azure vm image list` after installing [azure command line tools for linux/mac](

**Two diagnostics tips that saved my morning :)**

- If you see error messages from `vagrant`, enable the [diagnostic logging]( with `export VAGRANT_LOG=debug`, rerun `vagrant up`

**OK, the final awesomeness is...**

Linux host executing a powershell command on remote windows virtual machine on Azure

![Vagrant + Azure + Powershell + Chocolatey](/content/images/2015/02/vagrant_azure_powershell_chocolatey.jpg)

Wish there were a tool for Linux/Mac to create a persistent remote powershell session (just like ssh) to azure vm with WinRM!