All skills
microsoft avatar

/azure-resource-visualizer

@ae5e585
by microsoftmicrosoft/skills3.1k stars
351

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.

Use this Skill: https://skilld.dev/gh/microsoft/skills/azure-resource-visualizer

This session only. Nothing lands on disk.

referencesazure-resource-graph.md

≈620 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Azure Resource Graph Queries for Resource Discovery

Azure Resource Graph (ARG) enables fast, cross-subscription resource querying using KQL via az graph query. Use it for bulk resource discovery and relationship mapping.

How to Query

Use the extension_cli_generate MCP tool to generate az graph query commands:

mcp_azure_mcp_extension_cli_generate
  intent: "query Azure Resource Graph to <describe what you want to find>"
  cli-type: "az"

Or construct directly:

az graph query -q "<KQL>" --query "data[].{name:name, type:type}" -o table

⚠️ Prerequisite: az extension add --name resource-graph

Key Tables

Table Contains
Resources All ARM resource instances (name, type, location, properties, tags)
ResourceContainers Subscriptions, resource groups, management groups

Resource Discovery Patterns

List all resources by type:

Resources | summarize count() by type | order by count_ desc

Inventory by location and type:

Resources | summarize count() by type, location | order by type asc

List all resources in a resource group with details:

Resources
| where resourceGroup =~ '<rg-name>'
| project name, type, location, sku.name, kind

Cross-subscription resource inventory with subscription names:

Resources
| join kind=leftouter (
    ResourceContainers
    | where type == 'microsoft.resources/subscriptions'
    | project subscriptionId, subscriptionName=name
) on subscriptionId
| project name, type, location, resourceGroup, subscriptionName

Discover network relationships (VNets, subnets, NICs):

Resources
| where type =~ 'microsoft.network/virtualnetworks'
| mv-expand subnet=properties.subnets
| project vnetName=name, subnetName=subnet.name, addressPrefix=subnet.properties.addressPrefix, resourceGroup

Find App Services and their plans:

Resources
| where type =~ 'microsoft.web/sites'
| project name, kind, location, serverFarmId=properties.serverFarmId, resourceGroup

Tips

  • Use =~ for case-insensitive type matching (resource types are lowercase)
  • Navigate properties with properties.fieldName
  • Use --first N to limit result count
  • Use --subscriptions to scope to specific subscriptions
  • Use mv-expand to flatten arrays (e.g., subnets, IP configurations)

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill facilitates the visualization of Azure architectures by generating Mermaid diagrams from resource group metadata. It includes security considerations such as handling external resource data, though these are used within the skill's intended architectural mapping functionality.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    4/4 files flagged

Signed by skilld at ae5e585. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
metadata
{
  "author": "Microsoft",
  "version": "1.2.2"
}

README badge

README badge for microsoft/skills/azure-resource-visualizer