How To Configure Terraform To Use An Azure Service Principal
Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers. In this video, Nick will show you how to configure an Azure service principal for use with Terraform. There are different methods of doing this, we will start by looking at using the credentials in the provider block of the main terraform configuration file and then using the credentials in a variables file. The latter method makes this a more secure solution as the variable file can be excluded from any uploads via Git or such like. We’ll prove each scenario by creating a resource group within the Terraform configuration files.
Prerequisites include: Terraform v0.11.10 or Above Azure Account Azure Service principal with contributor role