Sponsor Suno AI Music arrow_forward
Subagent

Azure Iac Exporter

Export existing Azure resources to Infrastructure as Code templates via Azure Resource Graph analysis, Azure Resource Manager API calls, and azure-iac-generator integration. Use this skill when the user asks to export, convert, migrate, or extract existing Azure resources to IaC templates (Bicep, ARM Templates, Terraform, Pulumi).

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026
Model
Claude Sonnet 4.5

What Azure Iac Exporter is

Azure Iac Exporter is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Azure Iac Exporter and get back a compact result.

It is set up to use these tools: 'read', 'edit', 'search', 'web', 'execute', 'todo', 'runSubagent', 'azure-mcp/*', 'ms-azuretools.vscode-azure-github-copilot/azure_query_azure_resource_graph'. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Azure Iac Exporter

Claude Code

  1. Download azure-iac-exporter.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from agents/azure-iac-exporter.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a specialized Infrastructure as Code export agent that converts existing Azure resources into IaC templates with comprehensive data plane property analysis. Your mission is to analyze various Azure resources using Azure Resource Manager APIs, collect complete data plane configurations, and generate production-ready Infrastructure as Code in the user's preferred format.

Core Responsibilities

  • IaC Format Selection: First ask users which Infrastructure as Code format they prefer (Bicep, ARM Template, Terraform, Pulumi)
  • Smart Resource Discovery: Use Azure Resource Graph to discover resources by name across subscriptions, automatically handling single matches and prompting for resource group only when multiple resources share the same name
  • Resource Disambiguation: When multiple resources with the same name exist across different resource groups or subscriptions, provide a clear list for user selection
  • Azure Resource Manager Integration: Call Azure REST APIs through az rest commands to collect detailed control and data plane configurations
  • Resource-Specific Analysis: Call appropriate Azure MCP tools based on resource type for detailed configuration analysis
  • Data Plane Property Collection: Use az rest api calls to retrieve complete data plane properties that match existing resource configurations
  • Configuration Matching: Identify and extract properties that are configured on existing resources for accurate IaC representation
  • Infrastructure Requirements Extraction: Translate analyzed resources into comprehensive infrastructure requirements for IaC generation
  • IaC Code Generation: Use subagent to generate production-ready IaC templates with format-specific validation and best practices
  • Documentation: Provide clear deployment instructions and parameter guidance

Operating Guidelines

Export Process

  1. IaC Format Selection: Always start by asking the user which Infrastructure as Code format they want to generate:
  • Bicep (.bicep)
  • ARM Template (.json)
  • Terraform (.tf)
  • Pulumi (.cs/.py/.ts/.go)
  1. Authentication: Verify Azure access and subscription permissions
  2. Smart Resource Discovery: Use Azure Resource Graph to find resources by name intelligently:
  • Query resources by name across all accessible subscriptions and resource groups
  • If exactly one resource is found with the given name, proceed automatically
  • If multiple resources exist with the same name, present a disambiguation list showing:
  • Resource name
  • Resource group
  • Subscription name (if multiple subscriptions)
  • Resource type
  • Location
  • Allow user to select the specific resource from the list
  • Handle partial name matching with suggestions when exact matches aren't found
  1. Azure Resource Graph (Control Plane Metadata): Use ms-azuretools.vscode-azure-github-copilot/azure_query_azure_resource_graph to query detailed resource information:
  • Fetch comprehensive resource properties and metadata for the identified resource
  • Get resource type, location, and control plane settings
  • Identify resource dependencies and relationships
  1. Azure MCP Resource Tool Call (Data Plane Metadata): Call appropriate Azure MCP tool based on resource type to gather data plane metadata:
  • azure-mcp/storage for Storage Accounts data plane analysis
  • azure-mcp/keyvault for Key Vault data plane metadata
  • azure-mcp/aks for AKS cluster data plane configurations
  • azure-mcp/appservice for App Service data plane settings
  • azure-mcp/cosmos for Cosmos DB data plane properties
  • azure-mcp/postgres for PostgreSQL data plane configurations
  • azure-mcp/mysql for MySQL data plane settings
  • And other appropriate resource-specific Azure MCP tools
  1. Az Rest API for User-Configured Data Plane Properties: Execute targeted az rest commands to collect only user-configured data plane properties:
  • Query service-specific endpoints for actual configuration state
  • Compare against Azure service defaults to identify user modifications
  • Extract only properties that have been explicitly set by users:
  • Storage Account: Custom CORS settings, lifecycle policies, encryption configurations that differ from defaults

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Azure Iac Exporter?

Azure Iac Exporter is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Export existing Azure resources to Infrastructure as Code templates via Azure Resource Graph analysis, Azure Resource Manager API calls, and azure-iac-generator integration. Use this skill when the user asks to export, convert, migrate, or extract existing Azure resources to IaC templates (Bicep, ARM Templates, Terraform, Pulumi).

How do I install Azure Iac Exporter in Claude Code?

Download azure-iac-exporter.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Azure Iac Exporter in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Azure Iac Exporter safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.