import-infrastructure-as-code

Convert existing Azure resources into Terraform configurations using AVM modules.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/angryconsultant/Copilot-CLI --skill import-infrastructure-as-code-angryconsultant
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: import-infrastructure-as-code
Source: https://github.com/angryconsultant/Copilot-CLI/tree/main/plugins/azure-cloud-development/skills/import-infrastructure-as-code
Command: npx skills add https://github.com/angryconsultant/Copilot-CLI --skill import-infrastructure-as-code-angryconsultant

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reconstruct existing Azure deployments as Terraform configurations using Azure CLI discovery and AVM modules, enabling drift prevention and reproducible deployments.

Core Features & Use Cases

  • Discover and map existing Azure resources across subscriptions, resource groups, or individual resource IDs.
  • Leverage Azure Verified Modules (AVM) for standardized, reusable Terraform infrastructure.
  • Generate architecture documentation and downloadable discovery data for validation and planning.

Quick Start

Provide a subscription ID, resource group name, or resource IDs, and run the skill to generate AVM-based Terraform modules from discovered resources.

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 convert existing Azure resources into Terraform configurations?

To convert existing Azure resources into Terraform, you can use discovery tools that identify live infrastructure and map it into codified configurations. This skill uses Azure CLI to discover resources and outputs AVM-based Terraform modules for reproducible deployments.

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

The best way to reverse-engineer live Azure infrastructure into Terraform is by scanning the environment via Azure CLI, mapping resource dependencies, and generating standardized configurations. This process creates AVM-based Terraform modules to enable drift prevention and validation.

Can I use Azure Verified Modules when importing infrastructure as code?

Yes, you can use Azure Verified Modules (AVM) when importing infrastructure as code. This skill specifically selects AVM modules during the discovery phase to ensure the generated Terraform configurations are standardized, reusable, and aligned with Microsoft's best practices.

How do I generate Terraform from a specific Azure subscription or resource group?

To generate Terraform from a specific Azure subscription or resource group, you provide the subscription ID, resource group name, or individual resource IDs. The skill discovers the targeted resources and outputs corresponding AVM-based Terraform configurations and architecture documentation.

Does importing Azure infrastructure as code help with drift prevention?

Yes, importing Azure infrastructure as code directly helps with drift prevention by reconstructing live deployments into codified Terraform configurations. This allows you to validate, plan, and reproduce deployments consistently, preventing untracked configuration drift.

What are the limitations of using automated discovery to generate Terraform from Azure?

When using automated discovery to generate Terraform from Azure, limitations may arise from complex resource dependencies or unsupported AVM mappings. The skill outputs discovery data and architecture documentation to help you validate the generated configurations and manually adjust any incomplete resource mappings.