Blog Post

Azure Tools Blog
2 MIN READ

Announcing Public Preview of Terraform Export from the Azure Portal

stevenjma's avatar
stevenjma
Icon for Microsoft rankMicrosoft
May 01, 2025

Today, we are thrilled to announce the public preview of Terraform Export within the Azure Portal. With this new feature, you can now easily export your existing Azure resources to be managed declaratively directly from the Azure Portal. This will streamline your infrastructure-as-code (IaC) workflows, making it simpler to manage and automate your Azure resources via the AzureRM and AzAPI providers.

Scenario

Imagine you have an existing networking configuration you would like to bring to Terraform. Whether you’re interested in learning Terraform or an expert, understanding how Azure resources are reflected in the azurerm and azapi providers is critical to your team. With Terraform export, you can quickly see how your resources are represented in either provider, whether it’s one resource from the configuration or the entire resource group.

Benefits

Azure Export for Terraform is a tool designed to provide a seamless and efficient way to generate Terraform configuration files that accurately represent your Azure resources.  With the new Portal experience, you can easily understand your infrastructure’s representation in either the AzureRM or AzAPI providers within Terraform.

Usage

Prerequisite

Subscriptions will need to register the Microsoft.AzureTerraform resource provider.

Portal Usage

Find the experience in the Automation tab under the “Export template” blade. This experience is supported for individual resources as well as resource groups. 

 

Next Steps

We invite you to try out the Azure Portal Export for Terraform feature and share your feedback with us via the Feedback button. Your input is valuable as we continue to improve and expand our offerings to better meet your needs.

For scripting or exporting many resource groups or resource types, we encourage you to check out the Azure Export for Terraform tool, which comes with customization features.

If you wish to utilize the underlying APIs directly or via CLI/PS, visit the new Azure Terraform resource provider documentation.

As always, thank you for being a part of our Azure Terraform community and for your continued support.

Updated May 01, 2025
Version 2.0
No CommentsBe the first to comment