Integrating with Azure
As you now know more about Terraform CLI, moving further on, we are going to talk in this section about how you can integrate or authenticate Terraform to Azure using Terraform CLI. In order to provision or update Azure services using Terraform CLI, it is important that your version of the Terraform CLI should be able to talk to Azure. In Chapter 2, Terraform Installation Guide, we already described how you can install terraform.exe
on your local machine. So, let's try to understand how Terraform CLI can talk to Azure.
Here are the methods by which you can authenticate your Terraform CLI to Azure:
- Authentication using the Azure CLI
- Authentication using a Managed Service Identity (MSI)
- Authentication using a Service Principal and a Client Certificate
- Authentication using a Service Principal and a Client Secret
It is difficult to discuss all the possible options relating to Terraform authentication with Azure as there are so many...