--- title: 'Quickstart: ' description: keywords: ms.topic: quickstart ms.date: ms.custom: devx-track-terraform author: ms.author: --- # Quickstart: Article tested with the following Terraform and Terraform provider versions: - [Terraform v1.2.7](https://releases.hashicorp.com/terraform/) - [AzureRM Provider v.3.20.0](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs) This article shows how to use Terraform to ... [!INCLUDE [Terraform abstract](~/azure-dev-docs-pr/articles/terraform/includes/abstract.md)] In this article, you learn how to: > [!div class="checklist"] > * Task 1 > * Task 2 > * Task n > [!NOTE] > The example code in this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/...). See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform) ## Prerequisites [!INCLUDE [open-source-devops-prereqs-azure-subscription.md](~/azure-dev-docs-pr/articles/includes/open-source-devops-prereqs-azure-subscription.md)] - [Install and configure Terraform](/azure/developer/terraform/quickstart-configure) ## Implement the Terraform code 1. Create a directory in which to test and run the sample Terraform code and make it the current directory. 1. Create a file named `providers.tf` and insert the following code: [!code-terraform[master]()] 1. Create a file named `main.tf` and insert the following code: [!code-terraform[master]()] 1. Create a file named `variables.tf` and insert the following code: [!code-terraform[master]()] 1. Create a file named `outputs.tf` and insert the following code: [!code-terraform[master]()] 1. Create a file named and insert the following code: [!code-terraform[master]()] ## Initialize Terraform [!INCLUDE [terraform-init.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-init.md)] ## Create a Terraform execution plan [!INCLUDE [terraform-plan.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-plan.md)] ## Apply a Terraform execution plan [!INCLUDE [terraform-apply-plan.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-apply-plan.md)] ## Verify the results ## Clean up resources [!INCLUDE [terraform-plan-destroy.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-plan-destroy.md)] ## Troubleshoot Terraform on Azure [Troubleshoot common problems when using Terraform on Azure](/azure/developer/terraform/troubleshoot) ## Next steps > [!div class="nextstepaction"] >