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

Using Terraform tfvars for environment-agnostic deployments

Screenshot of Visual Studio Code displaying the folder structure for a Terraform project. The folder tree includes directories for different environments such as 'production' and 'staging', and files like 'main.tf', 'variables.tf', and environment-specific '.tfvars' files. Each environment folder contains its own '.tfvars' file to manage configuration variables, illustrating how Terraform configurations are organised and separated by environment

In this blog post we will look at how you would use tfvars to deploy to multiple environments in Azure. Deploying Infrastructure as Code (IaC) to multiple environments, we want to keep scalability in mind along with the thought of removing duplication when possible. Managing infrastructure configurations across different environments can be challenging, this is … Read more

Deploying a content filtering configuration in Azure OpenAI studio using Terraform and AzAPI

Screenshot of Azure AI Studio showing the creation of a content filter. The interface displays a section where the new content filter is listed, with details such as its name and configuration settings. The filter appears in the list of filters, indicating that it has been successfully created and is now available for use in deployments

In this blog post, I’ll show you on how to set up a content filtering configuration in Azure OpenAI Studio and apply it to your OpenAI deployment entirely using Terraform. Since there isn’t a native Terraform resource available for content filtering configurations, I will be using azapi_resource to assist with this. The content filtering system … Read more

Enabling PostgreSQL flexible server logs and configuring a retention period using Terraform

Screenshot of a Terraform configuration for an Azure PostgreSQL Flexible Server, highlighting the settings for server logs. The image shows the Terraform script with logging configurations enabled and the retention_period parameter set. The configuration specifies that server logging is active and defines the duration for which logs are retained.

In this blog post, we will look at enabling PostgreSQL flexible server logs and setting a retention period using Terraform. (Somewhat a new feature (was in Preview), the ability to enable server logs.) Deploying a sample server below, we can see within “Server Logs” that it currently isn’t enabled by default. Reviewing the linked learn.microsoft.com … Read more

Scaling Terraform Deployments with GitHub Actions: Essential Configurations

DevOps logo for the 90 Days of DevOps challenge, displaying the submission details for day 78 in 2024. The image features the DevOps logo alongside text indicating the submission topic: 'Scaling Terraform Deployments with GitHub Actions.' The visual represents progress in the DevOps learning challenge.

Scaling Terraform Deployments with GitHub Actions: Essential Configurations, is part of the 90 Days of DevOps event that Michael Cade has been running, certainly check out the event for lots more awesome DevOps related contributions here What have I covered in this session? My session is a presentation & demo – that covers essential configurations … Read more