azure-resource-lookup

Query and list Azure resources across subscriptions using Azure Resource Graph KQL.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/stephschofield/beth --skill azure-resource-lookup-stephschofield
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: azure-resource-lookup
Source: https://github.com/stephschofield/beth/tree/main/.github/skills/azure-resource-lookup
Command: npx skills add https://github.com/stephschofield/beth --skill azure-resource-lookup-stephschofield

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Finding and inventorying Azure resources across multiple subscriptions and resource groups is slow with the portal and inconsistent across CLI commands. This Skill answers questions like "what resources do I have" by generating and running Azure Resource Graph KQL queries for fast, cross-subscription discovery. ## Core Features & Use Cases - Resource Discovery: List VMs, storage accounts, web apps, container apps, databases, and any other Azure resource type across subscriptions and resource groups. - Orphaned Resource Detection: Find unattached disks, unused public IPs, orphaned NICs, and idle load balancers that waste budget. - Tag & Compliance Audits: Identify resources missing required tags, analyze tag coverage, and detect failed provisioning states or unhealthy resources. - Use Case: Ask "find all unattached disks in my subscription" and the Skill generates the appropriate KQL query, runs it via az graph query, and returns a formatted table of results. ## Quick Start Ask the agent to list all virtual machines in your subscription and it will generate and run the Azure Resource Graph query for you.

Frequently Asked Questions about azure-resource-lookup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list all Azure resources across multiple subscriptions?▼

Use Azure Resource Graph with a KQL query against the Resources table, such as summarizing count by type. Run it with az graph query and scope it using the --subscriptions flag to cover the subscriptions you want.

How to find orphaned or unattached Azure disks?▼

Query the Resources table for type microsoft.compute/disks where managedBy is empty. The Skill includes ready-made KQL patterns for unattached disks, unused public IPs, orphaned NICs, and idle load balancers.

When should I use Azure Resource Graph instead of dedicated MCP tools?▼

Use dedicated MCP tools like compute, storage, or aks when they fully cover a single resource type. Use Resource Graph for cross-subscription queries, resource types without MCP coverage like Container Apps, and tag or compliance audits.

Why does my Azure Resource Graph query return a BadRequest error?▼

BadRequest usually means invalid KQL syntax, such as wrong table or column names. Verify field names against the Resources schema and use =~ for case-insensitive type matching since resource types are lowercase.

Can Azure Resource Graph modify or delete resources?▼

No, Azure Resource Graph is read-only and cannot create, modify, or delete resources. It also has slight data latency, so it should not be used for real-time monitoring or mutation workflows.