How to work IaaC with Terraform integration Azure
How to work IaaC with Terraform integration Azure Login in azure and go to Azure CLI and create a service principle: az account list --query "[].{name:name, subscriptionId:id, tenantId:tenantId}" set subscription in case you have many: az account set --subscription="${SUBSCRIPTION_ID}" Now you can create a service principal for use with Terraform: az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}" These values map to the Terraform variables like so: appId is the client_id defined above. password is the client_secret defined above. tenant is the tenant_id defined above. Now you can use local Terraform Client with below template: # Configure the Microsoft Azure Provider provider "azurerm" { # The "feature" block is required for AzureRM provider 2.x. # If you're using version 1.x, the "features" block is not allowed. version = "~>2.0...