
Result: Once you run this file It will download these files to a terraform subfolder called.This will parse through all the workspace files to create an initial state of determining what is needed e.g., plugins referenced in the Main.tf file e.g., azure plugin.Typically run this once or just when adding in new providers or new versions.The following commands for Terraform are most crucial for you to know:
Outputs.tf: Declares information that you only determine after deployment. Variables.tf: Contains different values per environment e.g., development vs production environment. This is where all the updates for your Azure resources are performed, including the deployment of MDC. Main.tf: The declarative configuration of the state of your MDC deployment. In this workspace, you’ll have the following files: This way if you use Terraform, it’s recommended that you stick entirely with Terraform and don’t use any other management methods such as the Azure Portal.Īs part of using Terraform to manage MDC, you will need to setup the Terraform configuration in a workspace including the Azure Resource Manager (RM) provider which configures your Azure resources. In this article, we’ll be showing you how to deploy Microsoft Defender for Cloud (MDC) using Terraform from scratch.
It’s used to manage your infrastructure in Azure, as well as other clouds. Terraform is an Infrastructure as a Code tool created by Hashicorp. This post has been republished via RSS it originally appeared at: New blog articles in Microsoft Tech Community.