Infra Automation by Terraform for Azure Cloud VM— Part 4
This Terraform setup automates the provisioning of an Azure Virtual Machine (VM) with managed disks. It uses variables.tf to define key parameters like resource group name, VM size, and admin credentials. In main.tf, resources such as a resource group, virtual network, subnet, network security group, and a Windows VM are created. The VM is configured with a custom OS disk size and a specified Windows image. The terraform.tfvars file provides variable values for easy configuration, and the terraform plan and terraform apply commands are used to deploy the infrastructure.