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

Azure Security Center & log Analytics Workspaces

Azure Security Center is a good thing to have as part of your Azure resources and it comes in two tiers: Free or Standard. By default it is enabled in your Azure subscription at the free tier and changing that to standard unlocks additional features and comes with some costs . So you've upgraded Security … Continue reading Azure Security Center & log Analytics Workspaces

When life gets confusing – check your AzureRM module version

I had to enable disk encryption on some existing Azure VMs this morning but I kept hitting a snag even though I had done this before and was using the same powershell as before. Here's the PowerShell: $rgName = 'MySecureRg'; $vmName = 'MySecureVM'; $KeyVaultName = 'MySecureVault'; $KeyVault = Get-AzureRmKeyVault -VaultName $KeyVaultName -ResourceGroupName $rgname; $diskEncryptionKeyVaultUrl = … Continue reading When life gets confusing – check your AzureRM module version

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

Studying for AZ-300

I've started studying for the AZ-300 exam and I'm playing with logic apps.  I've created a logic app that monitors this blog and should email me when it detects a new post!! We'll see if it works 🙂 Update 11/01/2019 And it did work. My logic app sent me an email to let me know … Continue reading Studying for AZ-300

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