Complete the code to set the location for an Azure resource group in Terraform.
resource "azurerm_resource_group" "example" { name = "example-resources" [1] = "eastus" }
The correct attribute to specify the Azure region in the resource group block is location.
Complete the code to authenticate with Azure using a service principal.
provider "azurerm" { features = {} client_id = var.client_id client_secret = var.[1] tenant_id = var.tenant_id subscription_id = var.subscription_id }
The correct variable name for the service principal secret is client_secret.
Fix the error in the provider block to enable Azure Resource Manager features.
provider "azurerm" { features = [1] }
The features argument must be set to an empty map {} to enable Azure RM features.
Fill both blanks to configure the Azure provider with environment variables.
provider "azurerm" { features = [1] subscription_id = var.[2] }
The features argument must be an empty map {}. The subscription ID variable is named subscription_id.
Fill all three blanks to complete the Azure provider block with authentication details.
provider "azurerm" { features = [1] client_id = var.[2] client_secret = var.[3] }
The features argument is an empty map {}. The authentication uses client_id and client_secret variables.