# Azure/aztfexport

A tool to bring existing Azure resources under Terraform's management

Repository: https://github.com/Azure/aztfexport
Canonical: https://ross.abutalabs.com/products/aztfexport
Homepage: https://azure.github.io/aztfexport/
Language: Go
License: MPL-2.0
License Family: copyleft
Topics: terraform, iac, azure, devops, tool, terraform-azurerm
Last push: 2026-08-24T07:15:23+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 1845, "days_push": 9, "days_rel": 47, "gap_med": 83, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1909, forks 220 (observed 2026-08-28T04:05:53.011651+00:00)

## What it is
Azure Export for Terraform (aztfexport) is a CLI tool that imports existing Azure resources into Terraform state and generates the corresponding Terraform configuration. It supports both the AzureRM and AzAPI providers and aims for zero-diff terraform plans after export.

## Use cases
- import existing azure resources into terraform
- generate terraform config from current azure infrastructure
- adopt terraform for pre-existing azure resources
- export azure resource group to terraform state
- migrate manually created azure resources to iac
- run terraform plan with no diff after importing azure resources

## When to choose
- you have existing Azure resources not yet managed by Terraform
- you want automated state import plus HCL generation for AzureRM or AzAPI providers
- you need a cross-platform CLI with package manager installs

## When to avoid
- you need 100% reproducible infrastructure from the generated configuration
- you want elegant generated code with modules, for_each, or implicit dependencies
- you are exporting non-Azure cloud resources

## Facets
- artifact type: cli-tool
- maturity: active
- function: infrastructure-as-code, cli, developer-tools, deployment
- domain: infrastructure-as-code, cloud-computing
- platform: windows, cli, cross-platform
- tags: terraform, azure, iac, resource-import, azurerm, azapi, go, devops, automation, linux, macos

## Member repositories
- Azure/aztfexport (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:53.011651+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:11:05.500080+00:00, confidence not recorded.
  - readme: https://github.com/Azure/aztfexport (fetched 2026-08-28T04:05:53.011651+00:00, sha 4dd2a6389264)
  - homepage: https://azure.github.io/aztfexport/ (fetched 2026-08-29T10:50:02.720094+00:00, sha 06b87c8f9492)
- Data as of 2026-08-30T08:39:29.467469+00:00.
