p00318821-eng/skills-plugins-hooks-agents/eventhouse-authoring-cli
Claude Code and agent skill by p00318821-eng/skills-plugins-hooks-agents
- community
Checking that the SKILL.md file is still in the repository.
Execute KQL management commands (table management, ingestion, policies, functions, materialized views) against Fabric Eventhouse and KQL Databases via CLI. Use when the user wants to: 1. Create or alter KQL tables, columns, or functions 2. Ingest data into an Eventhouse (inline, from storage, streaming) 3. Configure retention, caching, or partitioning policies 4. Create or manage materialized views and update policies 5. Manage data mappings for ingestion pipelines 6. Deploy KQL schema via scri…
Install
npx vskill@latest install p00318821-eng/skills-plugins-hooks-agents/eventhouse-authoring-cliSKILL.md
Update Check — ONCE PER SESSION (mandatory)The first time this skill is used in a session, run the check-updates skill before proceeding.- GitHub Copilot CLI / VS Code: invoke thecheck-updatesskill.- Claude Code / Cowork / Cursor / Windsurf / Codex: compare local vs remote package.json version.- Skip if the check was already performed earlier in this session.
CRITICAL NOTES1. To find the workspace details (including its ID) from workspace name: list all workspaces and, then, use JMESPath filtering2. To find the item details (including its ID) from workspace ID, item type, and item name: list all items of that type in that workspace and, then, use JMESPath filtering
eventhouse-authoring-cli — Eventhouse Authoring and Management via CLI
Table of Contents
| Task | Reference | Notes | |
|---|---|---|---|
| Finding Workspaces and Items in Fabric | COMMON-CLI.md § Finding Workspaces and Items in Fabric | Mandatory — READ link first [needed for workspace/item ID resolution] | |
| Fabric Topology & Key Concepts | COMMON-CORE.md § Fabric Topology & Key Concepts | Hierarchy, Finding Things in Fabric | |
| Environment URLs | COMMON-CORE.md § Environment URLs | KQL Cluster URI, KQL Ingestion URI | |
| Authentication & Token Acquisition | COMMON-CORE.md § Authentication & Token Acquisition | Wrong audience = 401; KQL audience: kusto.kusto.windows.net | |
| Core Control-Plane REST APIs | COMMON-CORE.md § Core Control-Plane REST APIs | List Workspaces, List Items, Item Creation | |
| Pagination | COMMON-CORE.md § Pagination | ||
| Long-Running Operations (LRO) | COMMON-CORE.md § Long-Running Operations (LRO) | ||
| Rate Limiting & Throttling | COMMON-CORE.md § Rate Limiting & Throttling | ||
| OneLake Data Access | COMMON-CORE.md § OneLake Data Access | Requires storage.azure.com token, not Fabric token | |
| Job Execution | COMMON-CORE.md § Job Execution | ||
| Capacity Management | COMMON-CORE.md § Capacity Management | ||
| Gotchas & Troubleshooting | COMMON-CORE.md § Gotchas & Troubleshooting | ||
| Best Practices | COMMON-CORE.md § Best Practices | ||
| Tool Selection Rationale | COMMON-CLI.md § Tool Selection Rationale | ||
| Authentication Recipes | COMMON-CLI.md § Authentication Recipes | az login flows and token acquisition | |
Fabric Control-Plane API via az rest | COMMON-CLI.md § Fabric Control-Plane API via az rest | Always pass `--resource https://api.fabric.microsoft.com` or az rest fails | |
| Pagination Pattern | COMMON-CLI.md § Pagination Pattern | ||
| Long-Running Operations (LRO) Pattern | COMMON-CLI.md § Long-Running Operations (LRO) Pattern | ||
OneLake Data Access via curl | COMMON-CLI.md § OneLake Data Access via curl | Use curl not az rest (different token audience) | |
| SQL / TDS Data-Plane Access | COMMON-CLI.md § SQL / TDS Data-Plane Access | sqlcmd (Go) — not for KQL, but useful for cross-workload | |
| Job Execution (CLI) | COMMON-CLI.md § Job Execution | ||
| OneLake Shortcuts | COMMON-CLI.md § OneLake Shortcuts | ||
| Capacity Management (CLI) | COMMON-CLI.md § Capacity Management | ||
| Composite Recipes | COMMON-CLI.md § Composite Recipes | ||
| Gotchas & Troubleshooting (CLI-Specific) | COMMON-CLI.md § Gotchas & Troubleshooting (CLI-Specific) | az rest audience, shell escaping, token expiry | |
Quick Reference: az rest Template | COMMON-CLI.md § Quick Reference: az rest Template | ||
| Quick Reference: Token Audience / CLI Tool Matrix | COMMON-CLI.md § Quick Reference: Token Audience ↔ CLI Tool Matrix | Which --resource + tool for each service | |
| Authoring Capability Matrix | EVENTHOUSE-AUTHORING-CORE.md § Authoring Capability Matrix | Read first — KQL Database vs Shortcut (read-only); connection requires Admin/Ingestor role | |
| Table Management and Schema Evolution | EVENTHOUSE-AUTHORING-CORE.md § Table Management and Schema Evolution | Create Table, Create-Merge (idempotent), Alter / Rename / Drop, Schema Evolution (Rename, Swap/Blue-Green) | |
| Ingestion and Data Mappings | EVENTHOUSE-AUTHORING-CORE.md § Ingestion and Data Mappings | Inline, Set-or-Append/Replace, From Storage, Streaming, Data Mappings (CSV, JSON) | |
| Policies | EVENTHOUSE-AUTHORING-CORE.md § Policies | Retention, Caching, Partitioning, Merge | |
| Materialized Views | EVENTHOUSE-AUTHORING-CORE.md § Materialized Views | Create, Alter, Lifecycle, Supported aggregations | |
| Stored Functions and Update Policies | EVENTHOUSE-AUTHORING-CORE.md § Stored Functions and Update Policies | Stored Functions, Update Policies (auto-transform on ingestion) | |
| External Tables | EVENTHOUSE-AUTHORING-CORE.md § External Tables | OneLake / ADLS External Table, Query External Table | |
| Permission Model | EVENTHOUSE-AUTHORING-CORE.md § Permission Model | Database Roles, Grant Permissions | |
| Authoring Gotchas and Troubleshooting | EVENTHOUSE-AUTHORING-CORE.md § Authoring Gotchas and Troubleshooting Reference | 10 numbered issues with cause + fix | |
| Bash Templates | authoring-script-templates.md § Bash Templates | Create Table + Ingest, Schema Deployment, Export Schema, Set Retention/Caching | |
| PowerShell Templates | authoring-script-templates.md § PowerShell Templates | Create Table + Ingest, Schema Deployment | |
| Tool Stack | SKILL.md § Tool Stack | ||
| Connection | SKILL.md § Connection | ||
| Authoring Scope | SKILL.md § Authoring Scope | ||
| Execute KQL Command | SKILL.md § Execute KQL Command | `az rest` pattern — write JSON body, then execute | |
| Table Management via CLI | SKILL.md § Table Management via CLI | Create Table, Add Column, Drop Table | |
| Data Ingestion via CLI | SKILL.md § Data Ingestion via CLI | Inline, From Storage, From OneLake, Set-or-Append | |
| Policies via CLI | SKILL.md § Policies via CLI | Retention, Caching, Streaming Ingestion | |
| Materialized Views via CLI | SKILL.md § Materialized Views via CLI | ||
| Functions and Update Policies via CLI | SKILL.md § Functions and Update Policies via CLI | Create Function, Create Update Policy | |
| Schema Evolution via CLI | SKILL.md § Schema Evolution via CLI | Safe Schema Deployment Script, Export Current Schema | |
| Monitoring Authoring Operations | SKILL.md § Monitoring Authoring Operations | ||
| Must / Prefer / Avoid / Troubleshooting | SKILL.md § Must / Prefer / Avoid / Troubleshooting | MUST DO / AVOID / PREFER checklists | |
| Agentic Workflows | SKILL.md § Agentic Workflows | Exploration Before Authoring, Script Generation Workflow | |
| Examples | SKILL.md § Examples | ||
| Agent Integration Notes | SKILL.md § Agent Integration Notes |
Tool Stack
| Tool | Purpose | Install | |
|---|---|---|---|
| az cli | KQL management commands via Kusto REST API; Fabric control-plane discovery | winget install Microsoft.AzureCLI | |
| jq | JSON processing and output formatting | winget install jqlang.jq |
Connection
Same as eventhouse-consumption-cli. Authoring requires elevated roles:
Authoring Scope
| Operation | Command Pattern | |
|---|---|---|
| Create table | .create-merge table T (cols) | |
| Add column | .alter-merge table T (NewCol: type) | |
| Drop table | .drop table T ifexists | |
| Ingest data | .ingest into table T (...) | |
| Set retention | .alter table T policy retention ... | |
| Set caching | .alter table T policy caching hot = Nd | |
| Create function | .create-or-alter function F() { ... } | |
| Create materialized view | .create materialized-view MV on table T { ... } | |
| Create update policy | .alter table T policy update ... | |
| Create data mapping | .create table T ingestion csv mapping ... |
Execute KQL Command
All KQL management commands in this skill follow the same az rest pattern. After setting CLUSTER_URI and DB, write the JSON body to /tmp/kql_body.json and execute:
Nested JSON — For commands whose KQL contains embedded JSON (policies, mappings), use<< 'EOF'(single-quoted) to prevent shell expansion of backslash-escaped quotes, and replace${DB}with the literal database name.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/eventhouse-authoring-cli/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/p00318821-eng/skills-plugins-hooks-agents/eventhouse-authoring-cli)