
Azure Resource Lookup
OfficialFreeQuickly find and list Azure resources across subscriptions.
Free ยท Opens the source repo
What Azure Resource Lookup does
Azure Resource Lookup is a powerful tool designed to help users efficiently list and discover Azure resources across multiple subscriptions and resource groups. It leverages the Azure Resource Graph (ARG) to perform fast, cross-cutting queries, making it particularly useful when dedicated MCP tools are not available for specific resource types. This skill is ideal for developers and IT professionals who need to manage and audit their Azure environments effectively.
With Azure Resource Lookup, users can execute queries to list various resource types, including virtual machines, web apps, storage accounts, and databases. The skill supports complex queries across multiple subscriptions, enabling users to gain insights into their resource inventory and identify orphaned resources that may incur unnecessary costs. It also allows for tag analysis, helping users ensure compliance with organizational tagging policies.
This skill is especially beneficial for those who frequently need to answer questions like "What resources do I have?" or "Show me my Azure resources." By providing a streamlined way to access and visualize resource data, Azure Resource Lookup enhances productivity and resource management in Azure environments. Users can also take advantage of the Kusto Query Language (KQL) to customize their queries for more specific needs.
However, it's important to note that Azure Resource Lookup is not intended for deploying or modifying resources, nor is it suitable for cost analysis. For such tasks, users should utilize dedicated tools like azure-deploy or azure-cost. This skill is specifically focused on resource discovery and inventory management, making it a valuable addition to the toolkit of anyone working with Azure.
When to use it
Use Azure Resource Lookup when you need to inventory resources, find orphaned resources, or perform cross-subscription queries.
When not to use it
Do not use this skill for deploying resources or cost optimization; dedicated tools are better suited for those tasks.
What you can build with it
Inventory Resources Across Subscriptions
Quickly generate a comprehensive list of all Azure resources across multiple subscriptions to understand your cloud footprint.
Identify Orphaned Resources
Use the skill to find unattached disks and unused network interfaces, helping to clean up your Azure environment.
Tag Compliance Checks
Run queries to discover resources missing required tags, ensuring your organization adheres to tagging policies.
How to install Azure Resource Lookup
View source1. Install with the skills CLI
npx skills add microsoft/azure-skills/azure-resource-lookup --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by microsoftAzure Resource Lookup
List, find, and discover Azure resources of any type across subscriptions and resource groups. Use Azure Resource Graph (ARG) for fast, cross-cutting queries when dedicated MCP tools don't cover the resource type.
When to Use This Skill
Use this skill when the user wants to:
- List resources of any type (VMs, web apps, storage accounts, container apps, databases, etc.)
- Show resources in a specific subscription or resource group
- Query resources across multiple subscriptions or resource types
- Find orphaned resources (unattached disks, unused NICs, idle IPs)
- Discover resources missing required tags or configurations
- Get a resource inventory spanning multiple types
- Find resources in a specific state (unhealthy, failed provisioning, stopped)
- Answer "what resources do I have?" or "show me my Azure resources"
- List web apps, websites, or App Services
โ ๏ธ Warning: App Service / Web Apps have no dedicated MCP
listcommand. Prompts like "list websites", "list web apps", or "list app services" must route through this skill to use Azure Resource Graph.
๐ก Tip: For single-resource-type queries, first check if a dedicated MCP tool can handle it (see routing table below). If none exists, use Azure Resource Graph.
Quick Reference
| Property | Value |
|---|---|
| Query Language | KQL (Kusto Query Language subset) |
| CLI Command | az graph query -q "<KQL>" -o table |
| Extension | az extension add --name resource-graph |
| MCP Tool | extension_cli_generate with intent for az graph query |
| Best For | Cross-subscription queries, orphaned resources, tag audits |
MCP Tools
| Tool | Purpose | When to Use |
|---|---|---|
extension_cli_generate | Generate az graph query commands | Primary tool โ generate ARG queries from user intent |
mcp_azure_mcp_subscription_list | List available subscriptions | Discover subscription scope before querying |
mcp_azure_mcp_group_list | List resource groups | Narrow query scope |
Workflow
Step 1: Check for a Dedicated MCP Tool
For single-resource-type queries, check if a dedicated MCP tool can handle it:
| Resource Type | MCP Tool | Coverage |
|---|---|---|
| Virtual Machines | compute | โ Full โ list, details, sizes |
| Storage Accounts | storage | โ Full โ accounts, blobs, tables |
| Cosmos DB | cosmos | โ Full โ accounts, databases, queries |
| Key Vault | keyvault | โ ๏ธ Partial โ secrets/keys only, no vault listing |
| SQL Databases | sql | โ ๏ธ Partial โ requires resource group name |
| Container Registries | acr | โ Full โ list registries |
| Kubernetes (AKS) | aks | โ Full โ clusters, node pools |
| App Service / Web Apps | appservice | โ No list command โ use ARG |
| Container Apps | โ | โ No MCP tool โ use ARG |
| Event Hubs | eventhubs | โ Full โ namespaces, hubs |
| Service Bus | servicebus | โ Full โ queues, topics |
If a dedicated tool is available with full coverage, use it. Otherwise proceed to Step 2.
Step 2: Generate the ARG Query
Use extension_cli_generate to build the az graph query command:
mcp_azure_mcp_extension_cli_generate
intent: "query Azure Resource Graph to <user's request>"
cli-type: "az"
See Azure Resource Graph Query Patterns for common KQL patterns.
Step 3: Execute and Format Results
Run the generated command. Use --query (JMESPath) to shape output:
az graph query -q "<KQL>" --query "data[].{name:name, type:type, rg:resourceGroup}" -o table
Use --first N to limit results. Use --subscriptions to scope.
Error Handling
| Error | Cause | Fix |
|---|---|---|
resource-graph extension not found | Extension not installed | az extension add --name resource-graph |
AuthorizationFailed | No read access to subscription | Check RBAC โ need Reader role |
BadRequest on query | Invalid KQL syntax | Verify table/column names; use =~ for case-insensitive type matching |
| Empty results | No matching resources or wrong scope | Check --subscriptions flag; verify resource type spelling |
Constraints
- โ
Always use
=~for case-insensitive type matching (types are lowercase) - โ
Always scope queries with
--subscriptionsor--firstfor large tenants - โ Prefer dedicated MCP tools for single-resource-type queries
- โ Never use ARG for real-time monitoring (data has slight delay)
- โ Never attempt mutations through ARG (read-only)
Frequently asked questions about Azure Resource Lookup
Similar skills
Turborepo
Optimized build system for JavaScript/TypeScript monorepos.
Azure Pipelines Validation
Streamline your Azure DevOps pipeline changes locally.
Azure Developer CLI
Streamline your Azure project workflows with best practices.
Azure Container Registry CLI
Manage Azure Container Registry resources with ease.
Aspire
Build and orchestrate polyglot distributed applications seamlessly.
Vercel CLI
Manage and deploy Vercel projects from the command line.
