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 resource group in Terraform - Terraform Tutorial
From the course: Introduction to Terraform on Azure
Creating a resource group in Terraform
- [Instructor] Now that we have our Terraform provider ready to go, it's time to create our first resource block. For this first resource block, we'll be creating a resource group, which we'll be putting all of our Terraform resources in. To begin, we want to start with resource and then call the azurerm_resource_group provider block. And now let's have the local name, which we can reference this block throughout our configuration code. I'll be naming it main since this will be the main resource group that we'll be putting all of our resources in. The name of this resource group, you can name it whatever you'd like but I'm going to name mine learn-tf-rg and the location of eastus, which is the location where I'll be putting all my resources in. Now that we have our first configuration block created, we can open our terminal up. Make sure you're logged into your Azure account. So we can enter an az login. This will pull…