azure-resource-visualizer

软件研发 云服务与部署 4 文件 EN 原文

分析资源组并生成架构图

Analyze Azure resource groups and generate detailed Mermaid architecture diagrams showing the relationships between individual resources. WHEN: create architecture diagram, visualize Azure resources, show resource relationships, generate Mermaid diagram, analyze resource group, diagram my resources, architecture visualization, resource topology, map Azure infrastructure.

说明语言:英文

来源microsoftazure-skills ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/microsoft/azure-skills --skill azure-resource-visualizer

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: azure-resource-visualizer description: "Analyze Azure resource groups and generate detailed Mermaid architecture diagrams showing the relationships between individual resources. WHEN: create architecture diagram, visualize Azure resources, show resource relationships, generate Mermaid diagram, analyze resource group, diagram my resources, architecture visualization, resource topology, map Azure infrastructure." license: MIT metadata: author: Microsoft version: "1.2.3" ---

Azure Resource Visualizer - Architecture Diagram Generator

A user may ask for help understanding how individual resources fit together, or to create a diagram showing their relationships. Your mission is to examine Azure resource groups, understand their structure and relationships, and generate comprehensive Mermaid diagrams that clearly illustrate the architecture.

Core Responsibilities

  1. Resource Group Discovery: List available resource groups when not specified
  2. Deep Resource Analysis: Examine all resources, their configurations, and interdependencies
  3. Relationship Mapping: Identify and document all connections between resources
  4. Diagram Generation: Create detailed, accurate Mermaid diagrams
  5. Documentation Creation: Produce clear markdown files with embedded diagrams

Workflow Process

Step 1: Resource Group Selection

If the user hasn't specified a resource group:

  1. Use your tools to query available resource groups. If you do not have a tool for this, use az.
  2. Present a numbered list of resource groups with their locations
  3. Ask the user to select one by number or name
  4. Wait for user response before proceeding

If a resource group is specified, validate it exists and proceed.

Step 2: Resource Discovery & Analysis

For bulk resource discovery across subscriptions, use Azure Resource Graph queries. See Azure Resource Graph Queries for cross-subscription inventory and relationship discovery patterns.

Once you have the resource group:

  1. Query all resources in the resource group using Azure MCP tools or az.
  2. Analyze each resource type and capture:
  3. Resource name and type
  4. SKU/tier information
  5. Location/region
  6. Key configuration properties
  7. Network settings (VNets, subnets, private endpoints)
  8. Identity and access (Managed Identity, RBAC)
  9. Dependencies and connections
  1. Map relationships by identifying:
  2. Network connections: VNet peering, subnet assignments, NSG rules, private endpoints
  3. Data flow: Apps → Databases, Functions → Storage, API Management → Backends
  4. Identity: Managed identities connecting to resources
  5. Configuration: App Settings pointing to Key Vaults, connection strings
  6. Dependencies: Parent-child relationships, required resources
Important: You must only use placeholder names to represent secret values, such as keys, connection strings, Key Vault secrets, etc. Use meaningful placeholder names to represent each secret in the diagram. Never put secret values in the resource diagram.

Step 3: Diagram Construction

Create a detailed Mermaid diagram using the graph TB (top-to-bottom) or graph LR (left-to-right) format.

See example-diagram.md for a complete sample architecture diagram.

Key Diagram Requirements:

Resource Type Examples:

Step 4: File Creation

Use template-architecture.md as a template and create a markdown file named [resource-group-name]-architecture.md with:

  1. Header: Resource group name, subscription, region
  2. Summary: Brief overview of the architecture (2-3 paragraphs)
  3. Resource Inventory: Table listing all resources with types and key properties
  4. Architecture Diagram: The complete Mermaid diagram
  5. Relationship Details: Explanation of key connections and data flows
  6. Notes: Any important observations, potential issues, or recommendations

Operating Guidelines

Quality Standards

Tool Usage Patterns

  1. Azure MCP Search:
  2. Use intent="list resource groups" to discover resource groups
  3. Use intent="list resources in group" with group name to get all resources
  4. Use intent="get resource details" for individual resource analysis
  5. Use command parameter when you need specific Azure operations
  1. File Creation:
  2. Always create in workspace root or a docs/ folder if it exists
  3. Use clear, descriptive filenames: [rg-name]-architecture.md
  4. Ensure Mermaid syntax is valid (test syntax mentally before output)
  1. Terminal (when needed):
  2. Use Azure CLI for complex queries not available via MCP
  3. Example: az resource list --resource-group <name> --output json
  4. Example: az network vnet show --resource-group <name> --name <vnet-name>

Constraints & Boundaries

Always Do:

Never Do:

Edge Cases & Error Handling

Output Format Specifications

Mermaid Diagram Syntax

Markdown Structure

Success Criteria

A successful analysis includes:

Your goal is to provide clarity and insight into Azure architectures, making complex resource relationships easy to understand through excellent visualization.

同类技能
agents-sdkairunway-aks-setupappinsights-instrumentationazure-aiazure-aigatewayazure-app-onboardazure-app-onboard-prereqazure-cloud-migrate
本页内容来自开源项目 microsoft, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。