terraform-search-import

Import existing Azure resources into Terraform using az CLI discovery.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/Avihai-H/infraops --skill terraform-search-import-avihai-h
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-search-import
Source: https://github.com/Avihai-H/infraops/tree/main/.github/skills/terraform-search-import
Command: npx skills add https://github.com/Avihai-H/infraops --skill terraform-search-import-avihai-h

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires az CLI, Terraform 1.14+, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows users to discover and import existing Azure resources into Terraform, enabling centralized management and automation of infrastructure.

Core Features & Use Cases

  • Manual Discovery Workflow: Identify and list Azure resources using the az CLI.
  • Automatic Import into Terraform: Convert discovered resources into Terraform configurations for bulk import.
  • Resource Refactoring: Adopt Azure Virtual Machine (AVM) modules post-import.
  • Integration with Terraform MCP: Utilize tools for validating resource types, fetching provider details, and finding AVM modules.
  • Terraform Search (Experimental): An experimental feature for discovering resources using .tfquery.hcl files and Terraform query tools.

Quick Start

Import existing Azure resources into Terraform. Use terraform search import to search for resources.

Frequently Asked Questions about terraform-search-import

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bulk import existing Azure resources into Terraform?

To bulk import Azure resources into Terraform, this Skill automates discovery using the az CLI and converts resources into Terraform configurations. It requires the azurerm provider to manage the imported infrastructure.

What is the Terraform search import feature for Azure infrastructure?

Terraform search import is an experimental feature using .tfquery.hcl files and Terraform query tools to discover Azure resources. It helps organizations bring existing cloud resources under infrastructure as code management.

Do I need Terraform 1.14+ and az CLI to import Azure resources?

Yes, importing Azure resources into Terraform requires the az CLI for resource discovery and Terraform 1.14+ for configuration management. The azurerm provider is also necessary to execute the automated import process.

Can I refactor imported Azure resources into AVM modules after import?

Yes, after importing Azure resources into Terraform, you can refactor them to adopt Azure Virtual Machine (AVM) modules. The Skill integrates with Terraform MCP to validate resource types, fetch provider details, and find AVM modules.

What are the limitations of using experimental Terraform Search for resource import?

Terraform Search for discovering Azure resources is an experimental feature utilizing .tfquery.hcl files and query tools. Users should anticipate potential instability or workflow changes when relying on it for bulk infrastructure import operations.