Ansible and the Azure Rest API

Over the last few months I have been doing more and more work with Ansible to manage end to end deployments in Azure. For the most part Ansible’s core set of Azure modules work with no problems and more than do the job. However, with the rate which Microsoft are both adding new features and functionality it is difficult to keep up. The core Ansible modules rely on several Azure python libraries to be updated before the functionality can be added or introduced to the core module set....

April 3, 2020 · 11 min · Russ Mckendrick

Upgrade Python on MacOS

The latest major version of Python 2 was originally release on 03/07/2010 and on 01/01/2020 Python 2 will be no more; We have decided that January 1, 2020, will be the day that we sunset Python 2. That means that we will not improve it anymore after that day, even if someone finds a security problem in it. You should upgrade to Python 3 as soon as you can....

December 29, 2019 · 2 min · Russ Mckendrick

Packer CentOS 8

Now that CentOS 8 has been out for a few weeks I decided it was time to dip my toe in the water and update the CentOS 7 Packer scripts I had to work with CentOS 8. For those that don’t know, Packer by Hashicorp, is a tool which allows you to build your own images from a number of sources and use them on a number of platforms — Hashicorp describe Packer as;...

October 13, 2019 · 2 min · Russ Mckendrick

Adding a Deploy to Azure Button

I am currently working on a few other blog posts and presentations for work on some Azure features which required me to launch a CentOS 7 Virtual Machine running the latest version of Ansible using an ARM template. One thing I had noticed which doing reading up on the services I am going to be using is that a lot of the demos and documentation from Microsoft had buttons where you could Deploy to Azure, so I decided to create my own — you can see the finished product below;...

September 14, 2019 · 2 min · Russ Mckendrick

Quickly launch an Azure AKS Cluster

Over the next few weeks, I am planning on doing some work which requires me to spin up and teardown several small Kubernetes clusters. As I have access to an Azure Subscription and Microsoft have made the process of launching a cluster quite a painless experience I thought it would make sense to write a quick blog post to cover launching, configuring and tearing down an Azure AKS Cluster. To start with I prefer to set a few environment variables on the command-line for things such and the resource name which are repeated through of the commands I need to run;...

September 1, 2019 · 3 min · Russ Mckendrick

Microsoft Azure Portal URLs

As I am finding myself using Microsoft Azure more and more I thought I would make some notes about how to quickly access the various web portals. The Azure Portal A lot of the time I use the standard http://portal.azure.com/ URL, but as I started having to jump around various accounts for work and also personal use, I discovered that there were some great short cuts you can use. The quickest of these I have been using to navigate the main Azure portal is appending the name of the tenant you want to access to the end of the URL, for example;...

June 16, 2019 · 2 min · Russ Mckendrick

Moving to ZSH

After the announcement a few weeks back that Apple would be defaulting to zsh in macOS Catalina I decided to take the plunge and make the switch on my current machines. I have tried making the switch once before, but for one reason or another I ended up reverting back to Bash. This time I decided to do a little more reading up and also add the .zshrc file to my dotfiles repo and move as much as my ....

June 15, 2019 · 2 min · Russ Mckendrick

Terraform Quirks

I have been using Terraform over the last few months, having not used it in anger for quite a while since the projects I have been working on have been more suitable for using Ansible. However, as I am doing more and more with Microsoft Azure, I found the Ansible modules a little lacking, plus for someone of the projects I have had to use an orchestration tool which can natively run on Windows....

February 9, 2019 · 4 min · Russ Mckendrick