# Import infrastructure as code

> Import infrastructure as code is an open-source agent skill for cloud and infrastructure. Import existing Azure resources into Terraform using Azure CLI discovery and Azure Verified Modules (AVM). It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/import-infrastructure-as-code
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,254
- **License:** MIT
- **Skill name:** import-infrastructure-as-code
- **Collection:** https://github.com/github/awesome-copilot
- **Categories:** cloud and infrastructure
- **Listing updated:** 2026-11-17

## About

Import existing Azure resources into Terraform using Azure CLI discovery and Azure Verified Modules (AVM). Use when asked to reverse-engineer live Azure infrastructure, generate Infrastructure as Code from existing subscriptions/resource groups/resource IDs, map dependencies, derive exact import addresses from downloaded module source, prevent configuration drift, and produce AVM-based Terraform files ready for validation and planning across any Azure resource type.

## When your agent uses it

> Import existing Azure resources into Terraform using Azure CLI discovery and Azure Verified Modules (AVM). Use when asked to reverse-engineer live Azure infrastructure, generate Infrastructure as Code from existing subscriptions/resource groups/resource IDs, map dependencies, derive exact import addresses from downloaded module source, prevent configuration drift, and produce AVM-based Terraform files ready for validation and planning across any Azure resource type.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/import-infrastructure-as-code)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/import-infrastructure-as-code)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/import-infrastructure-as-code` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/import-infrastructure-as-code &&
cp -R "$tmp/skills/import-infrastructure-as-code" ~/.claude/skills/import-infrastructure-as-code &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/import-infrastructure-as-code` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/import-infrastructure-as-code` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/import-infrastructure-as-code &&
cp -R "$tmp/skills/import-infrastructure-as-code" ~/.agents/skills/import-infrastructure-as-code &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/import-infrastructure-as-code` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/import-infrastructure-as-code` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/import-infrastructure-as-code &&
cp -R "$tmp/skills/import-infrastructure-as-code" ~/.cursor/skills/import-infrastructure-as-code &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/import-infrastructure-as-code` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/import-infrastructure-as-code
```

Or copy the folder to `~/.gemini/skills/import-infrastructure-as-code` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/import-infrastructure-as-code`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/import-infrastructure-as-code &&
cp -R "$tmp/skills/import-infrastructure-as-code" ~/.copilot/skills/import-infrastructure-as-code &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/import-infrastructure-as-code` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/import-infrastructure-as-code` into your agent's skills folder as `import-infrastructure-as-code`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Import infrastructure as code in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/import-infrastructure-as-code to use it in all your projects, or to .claude/skills/import-infrastructure-as-code in one project.

### Does Import infrastructure as code run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Import infrastructure as code?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Import infrastructure as code?

The closest alternatives to Import infrastructure as code are Gem devops guidelines, Devops rollout plan, Azure container registry CLI, Azure devops CLI and Azure resource visualizer.

## Alternatives

- [Gem devops guidelines](https://ai-powered.com/skills/gem-devops-guidelines): Gem devops guidelines is an open-source agent skill for cloud and infrastructure.
- [Devops rollout plan](https://ai-powered.com/skills/devops-rollout-plan): Devops rollout plan is an open-source agent skill for cloud and infrastructure.
- [Azure container registry CLI](https://ai-powered.com/skills/azure-container-registry-cli): Azure container registry CLI is an open-source agent skill for cloud and infrastructure.
- [Azure devops CLI](https://ai-powered.com/skills/azure-devops-cli): Azure devops CLI is an open-source agent skill for cloud and infrastructure.
- [Azure resource visualizer](https://ai-powered.com/skills/azure-resource-visualizer): Azure resource visualizer is an open-source agent skill for cloud and infrastructure.
- [Azure deployment preflight](https://ai-powered.com/skills/azure-deployment-preflight): Azure deployment preflight is an open-source agent skill for cloud and infrastructure.
- [Arduino azure iot edge integration](https://ai-powered.com/skills/arduino-azure-iot-edge-integration): Arduino azure iot edge integration is an open-source agent skill for cloud and infrastructure.
- [Azure smart city iot solution builder](https://ai-powered.com/skills/azure-smart-city-iot-solution-builder): Azure smart city iot solution builder is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/import-infrastructure-as-code
