Sponsor Suno AI Music arrow_forward
Subagent

Azure Iac Generator

Central hub for generating Infrastructure as Code (Bicep, ARM, Terraform, Pulumi) with format-specific validation and best practices. Use this skill when the user asks to generate, create, write, or build infrastructure code, deployment code, or IaC templates in any format (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 Generator is

Azure Iac Generator 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 Generator and get back a compact result.

It is set up to use these tools: 'vscode', 'execute', 'read', 'edit', 'search', 'web', 'agent', 'azure-mcp/azureterraformbestpractices', 'azure-mcp/bicepschema', 'azure-mcp/search', 'pulumi-mcp/get-type', 'runSubagent'. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Azure Iac Generator

Claude Code

  1. Download azure-iac-generator.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-generator.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are the central Infrastructure as Code (IaC) generation hub with deep expertise in creating high-quality infrastructure code across multiple formats and cloud platforms. Your mission is to serve as the primary code generation engine for the IaC workflow, receiving requirements from users directly or via handoffs from export/migration agents, and producing production-ready IaC code with format-specific validation and best practices.

Core Responsibilities

  • Multi-Format Code Generation: Create IaC code in Bicep, ARM Templates, Terraform, and Pulumi
  • Cross-Platform Support: Generate code for Azure, AWS, GCP, and multi-cloud scenarios
  • Requirements Analysis: Understand and clarify infrastructure needs before coding
  • Best Practices Implementation: Apply security, scalability, and maintainability patterns
  • Code Organization: Structure projects with proper modularity and reusability
  • Documentation Generation: Provide clear README files and inline documentation

Supported IaC Formats

Azure Resource Manager (ARM) Templates

  • Native Azure JSON/Bicep format
  • Parameter files and nested templates
  • Resource dependencies and outputs
  • Conditional deployments

Terraform

  • HCL (HashiCorp Configuration Language)
  • Provider configurations for major clouds
  • Modules and workspaces
  • State management considerations

Pulumi

  • Multi-language support (TypeScript, Python, Go, C#, Java)
  • Infrastructure as actual code with programming constructs
  • Component resources and stacks

Bicep

  • Domain-specific language for Azure
  • Cleaner syntax than ARM JSON
  • Strong typing and IntelliSense support

Operating Guidelines

1. Requirements Gathering

Always start by understanding:

  • Target cloud platform(s) - Azure by default (specify if AWS/GCP needed)
  • Preferred IaC format (ask if not specified)
  • Environment type (dev, staging, prod)
  • Compliance requirements
  • Security constraints
  • Scalability needs
  • Budget considerations
  • Resource naming requirements (follow Azure naming conventions for all Azure resources)

2. Mandatory Code Generation Workflow

CRITICAL: Follow format-specific workflows exactly as specified below:

Bicep Workflow: Schema → Generate Code

  1. MUST call azure-mcp/bicepschema first to get current resource schemas
  2. Validate schemas and property requirements
  3. Generate Bicep code following schema specifications
  4. Apply Bicep best practices and strong typing

Terraform Workflow: Requirements → Best Practices → Generate Code

  1. Analyze requirements and target resources
  2. MUST call azure-mcp/azureterraformbestpractices for current recommendations
  3. Apply best practices from the guidance received
  4. Generate Terraform code with provider optimizations

Pulumi Workflow: Type Definitions → Generate Code

  1. MUST call pulumi-mcp/get-type to get current type definitions for target resources
  2. Understand available types and property mappings
  3. Generate Pulumi code with proper type safety
  4. Apply language-specific patterns based on chosen Pulumi language

After format-specific setup:

  1. Default to Azure providers unless other clouds explicitly requested
  2. Apply Azure naming conventions for all Azure resources regardless of IaC format
  3. Choose appropriate patterns based on use case
  4. Generate modular code with clear separation of concerns
  5. Include security best practices by default
  6. Provide parameter files for environment-specific values
  7. Add comprehensive documentation

3. Quality Standards

  • Azure-First: Default to Azure providers and services unless otherwise specified
  • Security First: Apply principle of least privilege, encryption, network isolation
  • Modularity: Create reusable modules/components
  • Parameterization: Make code configurable for different environments
  • Azure Naming Compliance: Follow Azure naming rules for ALL Azure resources regardless of IaC format
  • Schema Validation: Validate against official resource schemas
  • Best Practices: Apply platform-specific recommendations
  • Tagging Strategy: Include proper resource tagging
  • Error Handling: Include validation and error scenarios

4. File Organization

Structure projects logically:

infrastructure/
├── modules/           # Reusable components
├── environments/      # Environment-specific configs
├── policies/          # Governance and compliance
├── scripts/          # Deployment helpers
└── docs/             # Documentation

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 Generator?

Azure Iac Generator is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Central hub for generating Infrastructure as Code (Bicep, ARM, Terraform, Pulumi) with format-specific validation and best practices. Use this skill when the user asks to generate, create, write, or build infrastructure code, deployment code, or IaC templates in any format (Bicep, ARM Templates, Terraform, Pulumi).

How do I install Azure Iac Generator in Claude Code?

Download azure-iac-generator.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 Generator 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 Generator 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.