From the course: Introduction to Terraform on Azure

Unlock the full course today

Join today to access over 25,000 courses taught by industry experts.

Setting up Terraform for your Azure environment

Setting up Terraform for your Azure environment - Terraform Tutorial

From the course: Introduction to Terraform on Azure

Setting up Terraform for your Azure environment

- [Instructor] Now that we've installed Terraform onto our computers, now we should create a directory in which we'd like to add our configuration files to. I'm going to create a folder called TerraformforAzure. And in this, I'm going to add a new file called main.tf. So within Terraform, your main configuration file will be called main.tf. So this is where kind of you'll be hosting your modules, your commands on what you would like to deploy in your environment. So now that we have that created, let's go into our Visual Studio Code environment and get connected to our Azure accounts. So in order to do this, we'll open our terminal. Let's create a new terminal section. And since now we have the Azure CLI installed on our workstations as well, what we'll be using is using the Azure CLI commands to log into our Azure accounts. So all we do is type in az-login. If you are receiving an error when trying to run az-login to…

Contents