Displaying Terraform Plan as a comment in Azure DevOps Repo PRs with Azure DevOps Pipelines

Screenshot showing a Terraform Plan output as a comment in Azure DevOps. The comment, added automatically by the Azure DevOps pipeline, details the planned changes to the infrastructure, providing a clear overview of the proposed modifications before they are applied.

In this blog post – we will displaying Terraform plans directly within Azure DevOps Repository Pull Requests as a comment using Azure DevOps Pipelines. Prerequisites Please read this blog post prior, it has some prerequisites that are required before this pipeline will work successfully. Ensure you have: Azure DevOps Pipeline The Azure DevOps pipeline is … Read more

Adding pull-request comments to Azure DevOps Repo from Azure DevOps Pipelines

Screenshot showing a comment added in Azure DevOps by the pipeline. The comment, generated automatically by the pipeline process

Sometimes as part of your pull request process, you may want to include outputs, checks, or other relevant information as comments after your pipeline runs on various stages and tasks. In this blog post we will look and how this can be achieved using a bash task and Azure DevOps API Prerequisites I will be … Read more

Using variables to dynamically check out a repository using a specific branch or tag in Azure DevOps Pipelines

In Azure DevOps pipeline, you might want to check out a repository using a specific branch or tag, in this blog post – I am going to show how you can use variables to dynamically achieve this! Why dynamic? My thought on creating pipelines is that I usually want it to be as dynamic as … Read more

Creating Terraform Variables from Azure DevOps Pipeline Variables

Deploying Terraform using an Azure DevOps pipeline, you can use pipeline variables as part of your Terraform variables, in this blog post I will show you how. With Terraform, you are probably using .tfvars if deploying the multiple environments – awesome! There may be a time that you want to change a variable or have … Read more

If, elseif or else in Azure DevOps Pipelines

Writing Azure DevOps Pipelines YAML, have you thought about including some conditional expressions? In this blog post, I am going to show how you can use If, elseif or else expressions to assist in your pipeline creation Probably the most common expression you may be using is determining if a stage or job can run. … Read more

Analyze your Kubernetes YAML files and Helm Charts to ensure best practices using KuberLinter in Azure DevOps Pipeline

Screenshot from Azure DevOps showing the Kube-linter checks stage with a message indicating that lint errors were found, causing the pipeline to fail. The image highlights the error details and confirms that the pipeline did not pass due to the identified lint issues.

Deploying a number of YAML files or Helm Charts as part of your Kubernetes deployment? Unsure if they are representing best practices? KubeLinter will help you to achieve best practices within your YAML configurations & Helm Charts – I will show how you can add this tool as part of your CI integration tooling or … Read more

Creating dynamic variables during a pipeline run in Azure DevOps

In Azure DevOps Pipelines – you can create variables “on the fly” during your pipeline run! Wanting to create a variable such as resource ID, location of a resource in Azure etc? This blog post is for you! I will show how you can dynamically create variables during a pipeline run that can be referenced … Read more

Deploy to Azure Container App from Azure Container Registry using a CI/CD Azure DevOps Pipeline and Azure CLI

High-Level Design (HLD) diagram illustrating a CI/CD pipeline for a container app in Azure. The image shows the flow from Azure Repos for source code, through an Azure Pipeline for build and deployment, to Azure Container Registry (ACR) for image storage and retrieval, culminating in the deployment of the container app

Azure Container Apps are relatively new in Azure, still in Preview as of writing this blog post. In this blog, I will be deploying to Azure Container App from Azure Container Registry using a CI/CD Azure DevOps Pipeline and Azure CLI. You may be thinking, what is the difference between a Container App and Container … Read more

Deploy to Azure Container Instance from Azure Container Registry using a CI/CD Azure DevOps Pipeline and Terraform

High-Level Design (HLD) diagram illustrating a CI/CD pipeline for a container app in Azure. The image shows the flow from Azure Repos for source code, through an Azure Pipeline for build and deployment, to Azure Container Registry (ACR) for image storage and retrieval, culminating in the deployment of the container app

I am going to show using an Azure DevOps Pipeline and Terraform how you can deploy to your Azure Container Instance and setting up the pipeline to build a new Image and enabling CI/CD when you push to the repository – the pipeline will build a new image and deploy the updated image to the … Read more

Setting up Azure DevOps to begin deploying Terraform and configuring an Azure Storage Account for Terraform remote state

Within this blog post I am going to show how to setup Azure DevOps and configuring an Azure Storage Account for Terraform remote state. I write numerous blog posts that do reference this scenario quite often; rather than repeating myself within each post I am creating this base post of which I will be referencing … Read more