import-infrastructure-as-code

Import Azure resources into Terraform configurations using Azure CLI and AVM modules.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/lluppesms/dadabase.demo --skill import-infrastructure-as-code-lluppesms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: import-infrastructure-as-code
Source: https://github.com/lluppesms/dadabase.demo/tree/main/.github/skills/import-infrastructure-as-code
Command: npx skills add https://github.com/lluppesms/dadabase.demo --skill import-infrastructure-as-code-lluppesms

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill bridges the gap between live Azure infrastructure and Infrastructure as Code (IaC) by converting existing Azure resources into maintainable Terraform configurations, leveraging Azure Verified Modules (AVM).

Core Features & Use Cases

  • Reverse-Engineer Azure: Automatically discover and map existing Azure resources into Terraform.
  • AVM Module Generation: Produces Terraform files using official Azure Verified Modules for consistency and best practices.
  • Prevent Configuration Drift: Ensures your IaC accurately reflects your live environment, minimizing discrepancies.
  • Use Case: You have a production Azure environment that was set up manually over time. Use this Skill to generate Terraform code for it, enabling better version control, disaster recovery, and team collaboration.

Quick Start

Use the import-infrastructure-as-code skill to import the resource group 'my-resource-group' from subscription '12345678-1234-1234-1234-1234567890ab' into Terraform using AVM modules.

Frequently Asked Questions about import-infrastructure-as-code

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

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

You can import existing Azure resources into Terraform by using Azure CLI discovery to map live infrastructure and generate Terraform configurations. This Skill automates the process using Azure Verified Modules to ensure your code reflects the actual environment.

Can I generate Terraform configurations from a specific Azure resource group?

Yes, you can generate Terraform configurations from a specific Azure resource group. The import process scopes to a target subscription, resource group, or specific resource IDs to discover and map dependencies into Terraform files.

What are Azure Verified Modules and why use them for IaC?

Azure Verified Modules (AVM) are official modules used to generate Terraform files for consistency and best practices. Using AVM during the import process ensures your reverse-engineered infrastructure code remains compliant and maintainable.

How does importing Azure resources prevent configuration drift?

Importing Azure resources prevents configuration drift by mapping your live environment into accurate Terraform configurations. This ensures your Infrastructure as Code directly reflects the deployed Azure resources, minimizing discrepancies over time.

What is the best way to reverse-engineer live Azure infrastructure into IaC?

The best way to reverse-engineer live Azure infrastructure into IaC is using Azure CLI discovery to map existing resources and dependencies. This generates Terraform files aligned with Azure Verified Modules to prevent configuration drift.

Do I need Azure CLI to import infrastructure as code?

Yes, Azure CLI is required to discover and map existing Azure resources during the import process. It identifies the live infrastructure components within your subscriptions or resource groups to generate the Terraform configurations.