Skip to main content

Install Terraform Azure Provider in Azure Shell

Open Azure CLI

Go to https://shell.azure.com

Run terraform version to check terraform version

PS /home/satya> terraform version
Terraform v1.2.4
on linux_amd64

Your version of Terraform is out of date! The latest version
is 1.2.5. You can update by downloading from https://www.terraform.io/downloads.html

PS /home/satya> curl -O https://releases.hashicorp.com/terraform/1.2.5/terraform_1.2.5_darwin_amd64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20.3M  100 20.3M    0     0   233M      0 --:--:-- --:--:-- --:--:--  231M

PS /home/satya> unzip terraform_1.2.5_darwin_amd64.zip
Archive:  terraform_1.2.5_darwin_amd64.zip
  inflating: terraform

PS /home/satya> mkdir bin

PS /home/satya> mv terraform bin/

Close and restart Cloud Shell.

Check version again