Terraform automated deployment on Microsoft Azure inspired by the former AZ-104 Git Lab 04.
Clone the repo:
git clone https://github.com/pathei-kosmos/tf-lab-04.git
cd tf-lab-104
Initialize the Terraform project:
terraform init
Start by connecting Azure CLI to the Azure subscription you want to use for deployment:
az login
You can view the resources to be deployed:
terraform plan
If everything looks fine, you can start the deployment:
terraform apply
To delete the deployed resources:
terraform destroy
ℹ️ Note: Since the VMs password variable is protected, Terraform will prompt you for its value during each operation. Create a .tfvars
file to set its default value.