What problem does it solve? Bringing existing, manually created Azure resources under Terraform management is tedious and error-prone. This Skill automates the discovery of Azure resources and the generation of Terraform import blocks so unmanaged infrastructure can be adopted into Infrastructure as Code without recreation. ## Core Features & Use Cases - Manual Discovery Workflow: Uses az resource list and resource-specific Azure CLI commands to inventory resources, then generates resource and import blocks validated with terraform plan before apply. - Experimental Terraform Search: Supports Terraform >= 1.14 .tfquery.hcl list blocks with terraform query -generate-config-out when the azurerm provider supports list_resource_schemas. - Post-Import Modernization: Guides refactoring of raw azurerm_* resources into AVM modules using moved {} blocks, plus bulk import scripts and an ARM-type-to-Terraform mapping table. - Use Case: A platform team inherits a production resource group created through the Azure portal. They run the manual discovery workflow to list all resources, generate import blocks, verify the plan shows imports only, and apply — bringing everything under Terraform in one session. ## Quick Start Ask the agent to discover all resources in your Azure resource group and generate Terraform import blocks for them.