Public cloud engineering project: installing Terraform, creating and destroying Azure resources from code, moving state into an Azure storage account, and building my first VNet.
Week 3: Terraform on Azure, remote state, and a scrambled paste
I'm writing a series about cloud and infrastructure engineering and building one project in public, one week at a time. Week 1 was Linux and Git, and Week 2 was Bash scripting and networking. Week 3 was Terraform, which I did in two parts: a first resource group, then remote state and a first virtual network.
Part 1: Installing Terraform and creating my first resource
On my Ubuntu VM I installed Terraform from HashiCorp's APT repository, and the Azure CLI, then signed in without a browser on the VM:
az login --use-device-code az account show --output table
Enter fullscreen mode
Exit fullscreen mode
My first mistake: I ran az account show before installing the Azure CLI and got az: command not found .…