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
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/azure-iac-generator.agent.md
- 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
- 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.
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.
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
- MUST call azure-mcp/bicepschema first to get current resource schemas
- Validate schemas and property requirements
- Generate Bicep code following schema specifications
- Apply Bicep best practices and strong typing
Terraform Workflow: Requirements → Best Practices → Generate Code
- Analyze requirements and target resources
- MUST call azure-mcp/azureterraformbestpractices for current recommendations
- Apply best practices from the guidance received
- Generate Terraform code with provider optimizations
Pulumi Workflow: Type Definitions → Generate Code
- MUST call pulumi-mcp/get-type to get current type definitions for target resources
- Understand available types and property mappings
- Generate Pulumi code with proper type safety
- Apply language-specific patterns based on chosen Pulumi language
After format-specific setup:
- Default to Azure providers unless other clouds explicitly requested
- Apply Azure naming conventions for all Azure resources regardless of IaC format
- Choose appropriate patterns based on use case
- Generate modular code with clear separation of concerns
- Include security best practices by default
- Provide parameter files for environment-specific values
- 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
- TDD Red Phase - Write Failing Tests First Guide test-first development by writing failing tests that describe desired behaviour from GitHub issue context before implementation exists. Subagent · github/awesome-copilot
- Terraform IaC Reviewer Terraform-focused agent that reviews and creates safer IaC changes with emphasis on state safety, least privilege, module patterns, drift detection, and plan/apply discipline Subagent · github/awesome-copilot
- Terratest Module Testing Generate and refactor Go Terratest suites for Terraform modules, including CI-safe patterns, staged tests, and negative-path validation. Subagent · github/awesome-copilot
- Testing Automation Comprehensive collection for writing tests, test automation, and test-driven development including unit tests, integration tests, and… Plugin · github/awesome-copilot
- Azure Logic Apps Expert Mode Expert guidance for Azure Logic Apps development focusing on workflow design, integration patterns, and JSON-based Workflow Definition Language. Subagent · github/awesome-copilot
- 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). Subagent · github/awesome-copilot
- Azure Principal Architect mode instructions Provide expert Azure Principal Architect guidance using Azure Well-Architected Framework principles and Microsoft best practices. Subagent · github/awesome-copilot
- Azure AVM Terraform mode Create, update, or review Azure IaC in Terraform using Azure Verified Modules (AVM). Subagent · github/awesome-copilot