DEV Community

Spacelift team for Spacelift

Posted on • Edited on • Originally published at spacelift.io

Importing Resources with Aztfexport

If you’re adopting Terraform on Azure after resources already exist, the hardest part is often the transition: getting to a point where terraform plan is clean without rebuilding everything from scratch.

Microsoft’s aztfexport (Azure Export for Terraform, previously known as tools like Azure Terrafy / aztfy) helps you bridge that gap by exporting existing Azure resources into Terraform state and generating matching configuration, so you can start managing what’s already running as Infrastructure as Code.

In the full walkthrough, we cover:

  • What aztfexport does and when it’s the right tool for the job
  • Prerequisites and setup for exporting Azure resources safely
  • Exporting by scope (single resources vs resource groups) and validating results
  • How to reduce drift and avoid surprises before your first real change
  • Common pitfalls teams hit during “import to Terraform” migrations

➡️ Read the full tutorial on our blog:

https://spacelift.io/blog/azure-terraform-export

Top comments (0)