azure-resource-graph

Construct, review, and execute Azure Resource Graph queries via PowerShell.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/omiossec/om-claude-code-skills-agents --skill azure-resource-graph-omiossec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-resource-graph
Source: https://github.com/omiossec/om-claude-code-skills-agents/tree/main/skills/azure-resource-graph
Command: npx skills add https://github.com/omiossec/om-claude-code-skills-agents --skill azure-resource-graph-omiossec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, review, and execution of Azure Resource Graph queries, enabling users to analyze Azure resources efficiently and accurately.

Core Features & Use Cases

  • Query Construction & Optimization: Assist in building and refining KQL queries to explore Azure resource inventories.
  • Query Review & Enhancement: Evaluate existing queries for performance, correctness, and best practices.
  • Execution & Automation: Use PowerShell to run queries with error handling, pagination, and batch processing, suitable for cloud management and auditing tasks.
  • Use Case: A cloud administrator needs to identify all virtual machines across subscriptions and assess their security posture—this Skill helps craft, review, and execute such queries automatically.

Quick Start

Use the azure-resource-graph skill to write and run a query that lists all resources in your Azure subscription.

Frequently Asked Questions about azure-resource-graph

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

FAQPage Schema
How do I construct Azure Resource Graph queries to analyze resources across subscriptions?

This Skill helps you build and refine KQL queries to explore Azure resource inventories across subscriptions. It streamlines query construction for efficient cloud management, security audits, and inventory analysis.

Can I use PowerShell to execute Azure Resource Graph queries with pagination and error handling?

Yes, you can execute Azure Resource Graph queries using PowerShell with built-in error handling, pagination, and batch processing. This enables automated cloud management and auditing tasks at scale.

What is the best way to review and optimize existing KQL queries for Azure resources?

Reviewing and optimizing KQL queries involves evaluating them for performance, correctness, and best practices. This ensures your Azure Resource Graph queries run efficiently and return accurate resource data.

Does Azure Resource Graph support parallel processing for large-scale resource inventory analysis?

Yes, Azure Resource Graph supports parallel processing and batch execution through PowerShell. This handles large-scale resource queries efficiently, making it suitable for comprehensive cloud management and auditing tasks.

Why does my Azure Resource Graph query fail when searching virtual machines across multiple subscriptions?

Azure Resource Graph query failures often stem from unhandled pagination or errors in multi-subscription searches. Using PowerShell with proper error handling and batch processing ensures accurate cross-subscription resource assessment.