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

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 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

Deploy Terraform using GitHub Actions to Azure

Using Terraform to deploy your Azure resources is becoming more and more popular; in some instances overtaking the use of ARM to deploy into Azure. I will show you in this blog how you can deploy your Azure Resources created in Terraform using GitHub Actions. You may have saw my post previously Deploy Terraform using … Read more

Azure DevOps Pipelines – Remove the need to hard-code

Creating Azure DevOps Pipelines? If avoidable, try not hard code values within your DevOps pipeline! In this blog post; I am going to go through a small Terraform pipeline from hard-coded values to using parameters & variables What is hard-code? Think of it from a pipeline perspective, you create a stage within your pipeline and … Read more