run-arg-kql
Execute KQL queries against Azure Resource Graph to retrieve and analyze Azure resource information across subscriptions and tenants.
Instructions
Run a provided KQL query against Azure Resource Graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kql_query | Yes | KQL to execute (must reference valid ARG tables) | |
| subscription_ids | No | Optional explicit subscription IDs | |
| tenant_name | No | Optional configured tenant name | |
| top | No | Max rows to return (default: 100) | |
| use_all_subscriptions | No | If no subscriptions are provided, attempt to auto-discover all accessible subscriptions (default: true) |
Input Schema (JSON Schema)
{
"properties": {
"kql_query": {
"description": "KQL to execute (must reference valid ARG tables)",
"type": "string"
},
"subscription_ids": {
"description": "Optional explicit subscription IDs",
"items": {
"type": "string"
},
"type": "array"
},
"tenant_name": {
"description": "Optional configured tenant name",
"type": "string"
},
"top": {
"default": 100,
"description": "Max rows to return (default: 100)",
"type": "integer"
},
"use_all_subscriptions": {
"default": true,
"description": "If no subscriptions are provided, attempt to auto-discover all accessible subscriptions (default: true)",
"type": "boolean"
}
},
"required": [
"kql_query"
],
"type": "object"
}