Prerequisite on linux: azure cli, terraform and git.
Prerequisite on windows: azure cli, terraform, git and powershell/git-bash.
$ az login
Copy the url, paste it on the browser. then copy the code and paste it on the browser.
This should output the account info, grab the subscription-id and put below.
$ az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/subscription-id"
This will output the appid, the password which is the clientsecret and the tenantid. Put it on the terraform.tfvars.
$ git clone https://github.com/tso-terraform/terraform1.git
$ cd terraform1
$ terraform init
$ terraform plan
$ terraform apply
---do your testing---
$ terraform destroy