What you need
Install the Azure CLI
Azure CLI is commonly used for Terraform authentication and to manage Azure resources from the command line. Choose the installation method for your OS. Windows — download and silently install the MSI (PowerShell example):
Install Git (if needed)
Git manages Terraform configuration files as source-controlled code, enabling version tracking, collaboration, and rollbacks. Install Git and verify the installation: Windows (winget):Verify Azure CLI and sign in
After installing the Azure CLI, check the version and authenticate so Terraform can use your credentials. Confirm the installation:Azure CLI commands run in the context of a single subscription. Confirm
az account show reports the subscription you intend to use before running Terraform commands that create or modify resources.Next steps
Once Azure CLI and Git are installed and you’ve confirmed your Azure account context, proceed to install Terraform and configure your workspace. For Terraform installation and platform-specific packages, see:- Terraform downloads: https://www.terraform.io/downloads
- Azure CLI install docs: https://learn.microsoft.com/cli/azure/install-azure-cli
- Git downloads: https://git-scm.com/downloads