Terraform 0.12

So Terraform 0.12 was just released. I sat down this morning to have a quick play with it. I strongly recommend following the upgrade guide and make a separate branch of your TF files before testing 0.12. After getting everything setup and ready to test I ran a plan and apply using Terraform 0.11.14 and … Continue reading Terraform 0.12

Deallocate Azure VMs with Azure Devops – Scheduled VM shutdown.

Having been inspired by Gregor Suttie's post 'Replacing Azure Automation using Azure CLI and Azure Devops' I decided to do something similar with Powershell. My requirement was to power off VMs with a certain tag and value at a certain time. The PowerShell for this is fairly simple: Get-AzVM | Where-Object {$_.tags['shutDown'] -eq "19:00"} | Stop-AZVM … Continue reading Deallocate Azure VMs with Azure Devops – Scheduled VM shutdown.

Combining Terraform with Azure Devops

Really short and straight to the point post. 😀 I use the 'Terraform Tasks for Azure DevOps' extensions which makes using Terraform with Azure Devops an absolute breeze I have a build pipleline which initiates the remote storage for the Terraform state file, perfoms the Terraform init and the Terraform plan, all relevant files are … Continue reading Combining Terraform with Azure Devops

Intro to using Terraform for Azure resource deployments

  I've been increasingly using Terraform for my Infrastructure as Code deployments to Azure and I really like it and prefer it to using ARM templates.  The thing I like most about Terraform is that it's simple to use yet very powerful in its capabilities. This post is not intended to be an in-depth introduction … Continue reading Intro to using Terraform for Azure resource deployments

Deploying Azure Infrastructure Resources with Azure Devops – Part 2

In part one we setup a project in Azure Devops, create an Azure repo, added an ARM template to the repo and created a build pipeline.  In this post we'll create a release pipeline to actually deploy our resources in Azure. Within Azure Devops open our project and select 'Releases' and select 'New Pipeline' On … Continue reading Deploying Azure Infrastructure Resources with Azure Devops – Part 2

Deploying Azure Infrastructure Resources with Azure Devops – Part 1

I've recently had the opportunity to start playing with Azure Devops and as I'm historically and primarily an infrastructure guy I wondered how Azure Devops can help me with such things as Infrastructure as Code. What I'll show in this post is how to deploy ARM infrastructure resources such as VMs and vnets using ARM … Continue reading Deploying Azure Infrastructure Resources with Azure Devops – Part 1