Getting started
Prequisites
Install Azure cli on your machine using the official instructions: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
Install Terraform using the official instructions: https://developer.hashicorp.com/terraform/downloads?product_intent=terraform
Sign in to azure cli using
az login
and follow the on screen instructions to sign inCreate a local folder
Create a main.tf file and add the content
Intialize the project with
terraform init
with should complete successfully
Validate the project with
terraform validate
Run
terraform plan
If everything looks good, run
terraform apply
Accepts the changes
To remove the resources run
terraform destroy
and verify that the resource group is gone
Last updated