From the course: Introduction to Terraform on Azure
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Creating a virtual machine - Terraform Tutorial
From the course: Introduction to Terraform on Azure
Creating a virtual machine
- Now that we have all of our pieces ready to go, it's time to create our virtual machine. There are a few different Azure RM virtual machine resource blocks. For this demo, I'll be using the Azure RM windows, virtual machine. So it's Azure RM Windows virtual machine. They have a few different Azure RM virtual machine resource blocks. They have one specifically for a Linux virtual machine, a generic virtual machine resource block. For the purposes of this demo, we'll be using the Azure RM Windows virtual machine, since we'll be creating a Windows virtual machine with this demo. Since it is a virtual machine, we do need different arguments. Again, to start off with we do need to name all of our resources. So this will keep with our standard naming convention that I've been using throughout. So learn dash TF dash VM, since that's a resource type, and then east us, since that's the location I'll be placing it in. We…