github avatar

Import Infrastructure As Code

The import-infrastructure-as-code skill enables users to convert existing Azure infrastructure into Terraform code by discovering live resources and mapping them to Azure Verified Modules (AVM). It serves infrastructure engineers and platform teams who need to reverse-engineer Azure environments, generate Infrastructure as Code from subscriptions or resource groups, and establish a maintainable Terraform codebase while preventing configuration drift. The skill automates resource discovery via Azure CLI, identifies dependencies between resources, and produces AVM-based Terraform configurations ready for validation and planning across any supported Azure resource type.

skills.sh installs
6.9K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill import-infrastructure-as-code --agent claude-code

Installs into .claude/skills of the current project.

Files

Import Infrastructure as Code (Azure -> Terraform with AVM)

Convert existing Azure infrastructure into maintainable Terraform code using discovery data and Azure Verified Modules.

When to Use This Skill

Use this skill when the user asks to:

  • Import existing Azure resources into Terraform
  • Generate IaC from live Azure environments
  • Handle any Azure resource type supported by AVM (and document justified non-AVM fallbacks)
  • Recreate infrastructure from a subscription or resource group
  • Map dependencies between discovered Azure resources
  • Use AVM modules instead of handwritten azurerm_* resources

Prerequisites

  • Azure CLI installed and authenticated (az login)
  • Access to the target subscription or resource group
  • Terraform CLI installed
  • Network access to Terraform Registry and AVM index sources

Inputs

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
DevOps & CI/CD, Git & Pull Requests, AI & Agent Building, Productivity & Planning, Sales & Marketing, Cloud & Infrastructure, CLI & Terminal

More from github/awesome-copilot

All 318
1pixijs avatarpixijs-filterspixijs/pixijs-skillsUse this skill when applying visual effects to PixiJS v8 containers via the filter pipeline. Covers built-in filters (AlphaFilter, BlurFilter, ColorMatrixFilter6.9Kskills.sh installs
2forcedotcom avatarplatform-metadata-retrieveforcedotcom/sf-skillsALWAYS USE THIS SKILL to retrieve metadata from an org to your local project using the sf project retrieve start command. Supports multiple retrieval modes: ret6.9Kskills.sh installs
3forcedotcom avatarplatform-custom-field-generateforcedotcom/sf-skillsUse this skill when users need to create, generate, or validate Salesforce Custom Field metadata. Trigger when users mention custom fields, field types, Roll-up6.8Kskills.sh installs
4pixijs avatarpixijs-createpixijs/pixijs-skillsUse this skill when scaffolding a new PixiJS v8 project with the create-pixi CLI or adding PixiJS to an existing project. Covers npm/yarn/pnpm/bun create comman6.8Kskills.sh installs
5openai avataropenai-docsopenai/skillsUse when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation wi6.8Kskills.sh installs
6wshobson avatarsigned-audit-trails-recipewshobson/agentsStep-by-step cookbook for setting up cryptographically signed audit trails on Claude Code tool calls. Use when explaining, evaluating, or demonstrating the patt6.7Kskills.sh installs