Best way to import the existing infrastructure on Azure to Terraform

Srishti Gawande 0 Reputation points
2023-10-19T19:00:44.2833333+00:00

We have a huge azure infrastructure of nearly 6000 components in place, which were created through az cli / powershell. We want to import all of this in terraform and start using terraform for automation. What should be the best way to do that?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,262 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,446 Reputation points
    2023-10-19T19:31:15.11+00:00

    Hi Srishti,

    You can use Azure Export to export resource groups:

    Quickstart: Export your first resources using Azure Export for Terraform

    https://learn.microsoft.com/en-us/azure/developer/terraform/azure-export-for-terraform/export-first-resources?tabs=azure-cli

    Please see the following for limitations:

    Limitations

    https://learn.microsoft.com/en-us/azure/developer/terraform/azure-export-for-terraform/export-terraform-concepts#limitations


    If this is helpful please accept answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.