Using GitHub Actions variables as Terraform variables

In Terraform you can use variables to make your code more dynamic and reusable. You can use variables to pass in values from the command line, from a file, or from environment variables. In this blog post I will show you how to use GitHub Actions variables as Terraform variables. GitHub Actions Variables GitHub Actions … Read more

GitHub Action Workflow hashicorp/setup-terraform@v2 ERROR: Please run ‘az login’ to setup accountGitHub Action Workflow hashicorp/setup-terraform@v2 error:

A quick blog post on assisting with a couple of errors I came across when using workflow hashicorp/setup-terraform@v2 – this also remediates hashicorp/setup-terraform@v1 also. Two errors found, relating to the same fix: First error: Second error: The fix As detailed here in standard terraform usage is: Within my GitHub action, here is my remediation example … Read more

Storing and retrieving secrets in Azure Key Vault with GitHub Actions

Screenshot of a GitHub Actions job creating resource groups using secret values. The image shows the az CLI commands in the workflow logs, where resource groups are being created with values sourced from GitHub Secrets. It includes the commands with hashed or masked secret values, indicating that the resource groups are being configured securely using the secrets

Using GitHub Actions and wanting to store secrets security while utilising Azure? In this blog post I will be showing how you can create and store secrets in Azure Key Vault and retrieve them to be used as part of your GitHub Actions. I wrote a bash script to achieve this as Azure/get-keyvault-secrets@v1 has been … Read more

Deploy your first container app using Terraform and GitHub Actions tutorial/lab

High-Level Diagram (HLD) illustrating the workflow from a GitHub repository to deployment on Azure services. The diagram shows a GitHub repository with GitHub Actions configured to build and push images to Azure Container Registry (ACR). It also depicts the deployment of these images from ACR to an Azure Container App using a managed identity for secure access. Additionally, the diagram includes integrations with Application Insights and Log Analytics for monitoring and logging purposes.

This tutorial/lab has been created to take you through a DevOps journey to build & deploy an Azure Container Application using Terraform and GitHub Actions. It will include from setting up the GitHub pipeline, prerequisites and finishing with a successful Container Application being deployed – along with looking at alerting/monitoring! This is also my contribution … Read more

DevOps the hard way in Azure

Wanting to understand how to use DevOps technologies and practices for deploying apps and cloud infrastructure to Azure? I’ve created a tutorial based on this! This tutorial contains a full, real-world solution for setting up an environment that is using DevOps technologies and practices for deploying apps and cloud services/cloud infrastructure to Azure. It is … Read more

Get Public IP address of Azure DevOps hosted agent and Github-hosted runner

Wanting to know the specific Public IP address of an Azure DevOps hosted agent or GitHub-hosted runner? In this blog post I am going to show examples of how to retrieve each using bash within Azure DevOps Pipelines and GitHub Workflows. This sort of requirement is useful if the agent or runner requires access that … 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