Simple Terraform scripts to create an AKS cluster and ACR associated with the cluster.
Quick install for windows:
choco install terraform
Other ways please refer to Install Terraform.
Installation please refer to Install the Azure CLI
After installation, login to azure:
az login
Please don't forget to check which subscription you are currently in, use the following command:
az account show
If you want to change to another subscription:
az account list --output table
to list all subscriptions and switch with:
az account set --subscription <SubscriptionId>
Check what resources will be deployed,
terraform plan
Deploy the resources,
terraform apply
Destroy the resources,
terraform destroy