Error: spawn terraform ENOENT when running Terraform in Azure DevOps Pipeline

A quick blog post to detail the simple fix of when you see the error: spawn terraform ENOENT when running your Terraform within an Azure DevOps Pipeline. Depending on which stages you have setup to run, you will notice this at the terraform init stage. Error output from Azure DevOps Pipeline Within the Azure DevOps … Read more

A DevOps journey using Azure DevOps

This is a workshop/lab setup that I created; it is going to take you through a DevOps journey using Azure DevOps. From setting up your pipeline to deploying an application to your Azure Kubernetes cluster! This is also my contribution to this years Festive Tech Calendar – don’t forget to check out this content, its … Read more

Creating Azure Kubernetes Service with Application Gateway Ingress using Terraform and deploying a sample app

In this blog post I am going to show how you can deploy Azure Kubernetes Service (AKS) with Application Gateway Ingress using Terraform; this include Virtual Network, Log Analytics and Azure Kubernetes Service, once created – will show how to deploy a sample application into the newly created AKS cluster What is Azure Kubernetes Service … Read more

Creating reusable Terraform with Terraform modules

Writing Terraform; like any other IaC toolset, over time you may be repeating the same process for common resources such as an Azure Virtual network, Container registry, Postgres Database etc – instead of copying the same resource multiple times, you can create what is called a Terraform module to assist you with this repetition allowing … Read more

From Zero to GitOps with AKS – Azure Back to School Session

I presented a fun session with Karl Cooke presenting our Azure Back to School session “From Zero to GitOps with AKS”, in this session we cover:- What is AKS? Azure AKS architecture (Nodes and NodePools) Benefits of AKS GitOps GitOps Tooling Flux2 Terraform Azure Pipelines Demos! I do recommend checking out the session; where we … Read more

Terraform Module does not declare a provider warning

Deploying Terraform to Azure using a module and notice a warning similar to the below? In this blog post I will show how you can fix the warning “Module module.storageaccount does not declare a provider named azurerm.storageaccount.If you wish to specify a provider configuration for the module, add an entry for azurerm.storageaccount in the required_providers … Read more

Create an Azure DevOps self-hosted linux agent virtual machine using Terraform

Using Azure DevOps & wanting to deploy an Azure DevOps self-hosted agent using Terraform? In this blog I will show you how by creating all the required Azure resources for IaaS self-hosted agent! Why use an Azure DevOps self-hosted agent? Numerous reasons to why you may want to use an self-hosted agent > Microsoft hosted … Read more

Modify or edit remote Terraform state file in Azure

There may be a time where you are required to modify or edit remote Terraform state in Azure – in this blog I will show how you can achieve this! Why may I need to edit or modify? There can be various reasons; usually it may be required to perform a Terraform import of a … Read more

Importing Terraform state at scale in Azure

In my previous blog post, I detailed how to import 3 Azure resources until Terraform state, a manual approach that is fine for a few resources; what happens if there are 100s of the same resource already configured in Azure? Recently in my current project I was wanting to import 300+ private DNS A Records … Read more

Importing Terraform State in Azure

Wanting to import into a Terraform state file – unsure how? This blog will assist you with with that importing! In this blog, I am going to show you how to import Azure resources into a terraform state file; this can be done locally or else initialising a Terraform state file in a remote local; … Read more