The personal blog of Jamie Phillips

A blog about software development and other random musings.

Terraforming Azure SQL Database

In this post, we are going to learn how to use Terraform to create an Azure SQL Database and then extend the Terraform template to create a geo-replicated database and a failover group. Let's get started.

Azure ARM Template Tips

I have had a couple of fun days learning about Azure ARM templates. I learned Terraform without really giving ARM templates a chance and I can say without a doubt it was a solid decision. ARM templates have started growing on me what little I have had to do. Here are some of the items that I have learned about ARM templates that have been important for me to know.

Tips when using the Azure ARM resource in Terraform

Terraform is a great tool, occasionally you will run into instances where what you are trying to do isn't supported yet by the Azure provider. When a feature isn't supported you can always fall back to using the PowerShell module or the Azure CLI as I outlined in this post. There are times that those options don't really do what you are needed. When those cases arise, don't forget that Terraform does have the Azure ARM Template Resource that can be used to execute an ARM template that can do what you need. Using the template itself isn't as bad if you are used to using or types of templates in Terraform. Here are a few tips and tricks that can help you have more success. All the code can be found in this repo that I will be updating with more examples and modules as I have the time. The code of interest in that repo is located in the tf-arm directory in the examples directory. Okay, let's get started.