Learning DevOps
上QQ阅读APP看书,第一时间看更新

Configuring Terraform for Azure

Before writing Terraform code to provision a cloud infrastructure such as Azure, we must configure Terraform to allow the manipulation of resources in an Azure subscription.

To do this, we will first create a new Azure service principal (SP) in Azure Active Directory (AD), which, in Azure, is an application user who has permission to manage Azure resources.

For more details about the Azure SP, read the documentation here:  https://docs.microsoft.com/en-us/azure/active-directory/develop/app-objects-and-service-principals.

For this Azure SP, we have to assign to it the contributing permissions on the subscription in which we will create resources.