Getting Started Using Terraform Tests with Azure example

I have written a lot of Terraform over the years and learned the importance of testing Terraform configurations. Testing is often overlooked but is crucial for ensuring the reliability and correctness of your infrastructure code. In this blog post, I will show you how to write Terraform Tests along with an Azure example. Why Test … Read more

Getting Started with Terraform Preconditions

Terraform preconditions enforce specific criteria before managing resources, enhancing reliability and reducing deployment risks. By integrating preconditions within the lifecycle block, users can enforce checks, preventing potential errors. Benefits include improved consistency, error prevention, compliance, and documentation. Simplifying preconditions, using variables, and thoroughly testing are key practices. Ultimately, preconditions bolster infrastructure integrity while maintaining manageable configurations.

Improve Terraform Configurations with Variable Validation

Terraform variable validation, introduced in version 0.13, enables developers to enforce specific criteria for variable inputs, thus preventing errors and misconfigurations in resources. This includes defining conditions and error messages for various variables. Best practices emphasise clear messaging and the use of Terraform functions to improve reliability and maintainability in configurations.

Automating Logic App Deployments: From Designer to Terraform

I have been building several Logic Apps recently. I wanted to fully automate the setup and configuration using Terraform. In this blog post I will be showing you how to automate the Logic App Designer to Terraform. Its a slightly different blog post than usual, rather than full blown automation from the start, in this … Read more

Using Terraform for Geo-Restore in Azure PostgreSQL Flexible Server

It was recently announced that you can now use Terraform to Geo-Restore within PostgreSQL Flexible server. I will show how you can do this within this blog post. Terraform support for Geo-Restore allows you to incorporate the functionality into your CI/CD tooling! What is Geo-Restore? Geo-Restore is a powerful disaster recovery feature for Azure Database … Read more

Quick Fix: Resolving the ‘subscription_id is a required provider property’ Error in Terraform

Using Terraform and came across this error: “subscription_id is a required provider property when performing a plan/apply operation”? This blog post is for you – a quick post on how to fix this and get you back to deploying using Terraform Full error output Lets look quickly at the full output when trying to run … Read more

Step-by-Step Guide to Optimising Azure NSG Rules creation with Terraform: try Function and for_each Explained

Screenshot showing inbound Azure NSG Security rules

This guide looks at Optimising Azure NSG Rules Creation with Terraform. We’ll look at how to use the try function with for_each for Terraform NSG Rule Configuration and all arguments for azurerm_network_security_rule, providing a Step-by-Step Terraform NSG Guide for optimising Terraform Azure NSG Rules. A follow on from my popular blog post: Network Security Group … Read more

Dynamic Terraform Configurations with try and for_each Functions

The try function combined with for_each in Terraform offers a great approach to handling multiple variations in data structures within Terraform. In this blog post, we will look at using both these features to develop more resilient and adaptable Terraform configurations and will also include an example of this usage Quick overview of try and … Read more

Step-by-Step to creating Azure Application Gateway for Containers using Terraform

Azure Gateway for containers front end showing alb-frontend

Application Gateway for Containers (AGFC) is a newer and improved version of the earlier Application Gateway Ingress Controller (AGIC), which you might be familiar with if you’ve used Azure Kubernetes Service (AKS). This iteration advances Azure’s Application Load Balancing capabilities and adds a fresh offering to the Application Gateway product lineup. As I mentioned new … Read more

Mitigating Prompt Injections with Azure AI Prompt Shields and Terraform Deployment

High-level diagram showing how to mitigate Prompt Injection with Azure Prompt Shield

Using Open AI, you have probably came across prompt injections – Azure recently released a new service called AI Prompt Shields. In this blog post we will look at how you can deploy Azure AI Prompt Shield to mitigate against prompt injections – this will be deployed using Terraform with an example of mitigating. What … Read more