Agente · em Publicar e operar

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,…

Procedência

Antes de instalar

1 arquivo · 22,8 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/agents/azure-iac-exporter.md.

curl -fsSL --create-dirs \
  -o ".claude/agents/azure-iac-exporter.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/devops-infrastructure/azure-iac-exporter.md" \
  -o ".claude/agents/azure-iac-exporter.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/agents/azure-iac-exporter.md.

curl -fsSL --create-dirs \
  -o "$HOME/.claude/agents/azure-iac-exporter.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/devops-infrastructure/azure-iac-exporter.md" \
  -o "$HOME/.claude/agents/azure-iac-exporter.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Antigravity

Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Prévia do azure-iac-exporter.md

---
name: azure-iac-exporter
description: 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 Templ…
tools: read, edit, search, web, execute, todo, runSubagent, azure-mcp/*, ms-azuretools.vscode-azure-github-copilot/azure_query_azure_resource_graph
model: Claude Sonnet 4.5
---

# Azure IaC Exporter - Enhanced Azure Resources to azure-iac-generator
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-r…

## 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)
…

Ver todo o marketplace