Install the following tools on your device:
- Azure CLI
- Azure Subscription
- Terraform
Configure Azure CLI on your device by runnin the follwing commands:
# Login to Azure
az login
# Set azure account
az account set --subscription "<your-subscription-id>"
# Configure CLI
az config set extension.use_dynamic_install=yes_without_prompt
Open the code\infra\vars.tfvars
file and update the prefix and location parameters:
location = "<your-location>"
environment = "dev"
prefix = "<your-prefix-value>"
tags = {}
...
Deploy the Terraform configuration using the following commands:
# Move terraform_override.tf file
move .\utilities\terraformConfigSamples\* .\code\infra\
# Change directory
cd .\code\infra\
# Terraform init
terraform init
# Terraform plan
terraform plan -var-file="vars.tfvars"
# Terraform apply
terraform apply -var-file="vars.tfvars"
You successfully deployed the setup!