Azure / aztfexport

A tool to bring existing Azure resources under Terraform's management
https://azure.github.io/aztfexport/
Mozilla Public License 2.0
1.59k stars 184 forks source link

AzureGov export not producing main.tf file #488

Closed edchumpitaz closed 1 month ago

edchumpitaz commented 9 months ago

I'm new to working with aztfexport. After a few attempts, I was able to get the correct flags to begin the export. Once it completes, I see the aztfexportResourceMapping.json, import.tf, provider.tf, and terraform.tf files but not the main.tf file. I tried with and without the --hcl-only flag with no luck. Any insight would be appreciated. Are there additional steps I must take to get the main.tf file? The goal is to get the main.tf file and use it to deploy/redeploy this exported RG & Resources in a test/dev sub.

Command I'm using is aztfexport rg --hcl-only --env "usgovernment" rgname

magodo commented 9 months ago

@edchumpitaz Could you please share the log so that I can further look into, as the command seems correct to me. Also it worth mentioning that "reproduce" the provisioning is a non-goal of this tool.

stonehj commented 8 months ago

I'm having the same issue, did you manage to get it working?

magodo commented 1 month ago

Fixed by #546.