A simple repository implemented with Azure Hasicorp 5.3.0 to automate infrastructure with code
HCL
terraform-azure
Terraform commans to remember
terraform validate #Validates the code for syntax errors
terraform init #Initializes the configuration
terrraform plan #Check what changes will be made with your code
terraform apply #Apply the configuration
terraform destroy #Destroy the configuration
terraform show #Check current state
Setup Azure CLI for Terraform
Install the Azure CLI curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Login to Azure CLI az login
Check for logged in access to Azure CLI az account list
If you have multiple subscriptions then setup one subscription az account set --subscription="SUBSCRIPTION_ID"