terraform-search-import

Discover Azure resources and generate Terraform import configurations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps teams take existing Azure infrastructure that was created manually or outside Terraform and bring it under reliable infrastructure-as-code management without starting from scratch.

Core Features & Use Cases

  • Azure Resource Discovery: Find unmanaged resources with Azure CLI so you can map them to Terraform correctly.
  • Bulk Import Workflow: Generate import blocks and apply them safely for common Azure resource types.
  • Terraform Search Support: Optionally use Terraform 1.14+ search workflows when provider support exists, while falling back to a dependable manual path.
  • Post-Import Refactoring: Move imported raw resources toward AVM modules and cleaner module-based architecture after the initial import.
  • Use Case: A platform engineer inherits a live Azure subscription and uses this Skill to inventory resources, import them into Terraform, and prepare the codebase for ongoing governance.

Quick Start

Ask the assistant to discover your Azure resources and generate the Terraform import blocks needed to manage them safely.

Frequently Asked Questions about terraform-search-import

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

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

To import existing Azure resources into Terraform, you discover unmanaged infrastructure using Azure CLI and generate Terraform import blocks. This brings manually created resources under reliable infrastructure-as-code management without rebuilding them from scratch.

What is the best way to bring unmanaged Azure infrastructure under Terraform code management?

The best way to bring unmanaged Azure infrastructure under code management is using a resource discovery workflow that inventories resources and generates Terraform import blocks. This ensures resources are safely mapped and managed for ongoing governance.

Can I bulk import Azure resources across a subscription into Terraform?

Yes, you can bulk import Azure resources across subscriptions and resource groups into Terraform. The workflow generates and applies import blocks safely for common Azure platform services, enabling efficient migration and auditing of large unmanaged estates.

Do I need Azure CLI to import Azure resources into Terraform?

Yes, you need Azure CLI to discover existing Azure resources before generating Terraform import configurations. The azurerm provider and Terraform import or experimental search capabilities are also required to validate resource IDs and produce compliant configuration.

How do I refactor Terraform imported resources into AVM modules?

To refactor Terraform imported resources into AVM modules, you perform post-import refactoring after the initial bulk import. This moves raw imported resources toward cleaner module-based architecture using Azure Verified Modules for better codebase governance.

Does Terraform search work with the azurerm provider for importing Azure resources?

Terraform 1.14+ search workflows can optionally import Azure resources when azurerm provider support exists. If provider support is unavailable, the workflow falls back to a dependable manual path using generated import blocks.