terraform-search-import

Discover Azure resources and generate Terraform import blocks.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/crytlig/azure-agentic-infraops --skill terraform-search-import-crytlig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-search-import
Source: https://github.com/crytlig/azure-agentic-infraops/tree/main/.github/skills/terraform-search-import
Command: npx skills add https://github.com/crytlig/azure-agentic-infraops --skill terraform-search-import-crytlig

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of discovering and importing unmanaged Azure resources into Terraform for centralized infrastructure management.

Core Features & Use Cases

  • Resource Discovery: Uses az CLI and Terraform search to identify existing Azure resources.
  • Bulk Import Automation: Generates import blocks for multiple resources to facilitate efficient migration.
  • Use Case: A team wants to bring hundreds of existing VMs, networks, and storage accounts under Terraform control for versioning and automation.

Quick Start

Run the provided scripts to list resources in your Azure subscription and generate corresponding Terraform import blocks for seamless management.

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 in bulk?

This Skill automates bulk Terraform import by using az CLI and Terraform search to discover existing Azure infrastructure, generating import blocks to bring unmanaged resources under version control for configuration management.

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

The best way to bring unmanaged Azure infrastructure under Terraform control is automating resource discovery and bulk import block generation, allowing teams to efficiently migrate hundreds of VMs, networks, and storage accounts for ongoing management.

Can I use az CLI to discover Azure resources for Terraform import blocks?

Yes, az CLI is used to list resources in your Azure subscription. The Skill then combines this with Terraform search to identify existing infrastructure and generate the necessary import blocks for onboarding.

How do I generate Terraform import blocks for hundreds of existing VMs and storage accounts?

You can generate Terraform import blocks for hundreds of existing VMs and storage accounts by running the provided scripts that list Azure subscription resources and automatically produce the corresponding import configurations for bulk migration.

Does this Terraform Azure import approach work for cloud migration and infrastructure audits?

Yes, this Terraform Azure import approach works for cloud migration projects and infrastructure audits. It automates the discovery and onboarding of existing resources, enabling seamless infrastructure as code adoption and ongoing configuration management.