Deploy resources to Azure with Terraform
- Create a virtual network
- Create a subnet
- Create a public IP address
- Create a network security group
- Create a virtual network interface card
- Create a storage account for diagnostics
- Create a virtual machine
- Delete a virtual machine after submitting the assignment
- az login
- az account set --subscription "subscription_id"
- terraform init
- terraform plan
- terraform apply (for creating all the resources)
- terraform destroy (for destroying all the resources once you done playing)
- terraform destroy -target RESOURCE_TYPE.NAME (for destroying a particular resource)