Interview Prep/Azure/Quota, Deployment and IaC Errors

Terraform azurerm v4: `Error: subscription ID could not be determined and was not specified`.

BeginnerTroubleshootingQuota, Deployment and IaC Errors
Answer

Likely causes → azurerm v4 requires an explicit subscription ID; v3 inferred it from the CLI.

Diagnose → Check the provider block and ARM_SUBSCRIPTION_ID.

Fix →

provider "azurerm" {
  features {}
  subscription_id = var.subscription_id
}

or export ARM_SUBSCRIPTION_ID=$(az account show --query id -o tsv).

Prevent → Pin provider versions and read upgrade guides before bumping majors.

Azure All Azure questions

More on Quota, Deployment and IaC Errors