From the course: Introduction to Terraform on Azure
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Creating a virtual network - Terraform Tutorial
From the course: Introduction to Terraform on Azure
Creating a virtual network
- [Instructor] Now that we have a resource group created, let's get started on creating our end goal of a virtual machine. The first thing we need to create is a virtual network. Azure virtual networks allow your resources to talk to each other and is one of the bases that we need to create first in order to create our virtual machine since all the pieces will fit together at the end. To create a virtual network resource block, it's very similar to a resource group. However, we need different parameters to create a virtual network. So similarly on how we called the azurerm resource group, we'll be entering azurerm but virtual_network this time instead of resource_group since we're creating a virtual network. Again, I'm going to reference this as main since I like to kind of keep my configurations together based off where they're put. Since this will be put in our main resource group, I'm going to name the local…