How aztfexport works
mainThe tool automates the process of bringing existing Azure resources under Terraform management by performing the following steps:
- Identification: Uses
aztftto map an Azure resource ID to the corresponding Terraform resource type. - Import: Executes
terraform importunder the hood for each identified resource. - Configuration Generation: Uses
tfaddto generate the Terraform HCL code for each imported resource.
The goal is to produce a Terraform state and configuration that are consistent with the remote Azure state, such that a terraform plan shows no differences.