Generated banner for Onelake Catalog CLI
Generated logo for Onelake Catalog CLI

Onelake Catalog CLI

MicrosoftOfficialPublished by Microsoft

  • Skill
  • Workflow
  • Automation and integrations
  • MIT
  • No issues found

From the author

Governs and curates the Microsoft Fabric OneLake catalog through Fabric Admin, Core and Power BI REST APIs. Use for tenant or data-owner governance audits and guarded remediation of domains, workspace assignment, capacity, labels, tag definitions, workspace tags, certification, refresh and item identity, and for owners curating an item's description, name, tags and table and column descriptions. Item discovery belongs to search-consumption-cli.
— the description by Microsoft

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The onelake-catalog-cli skill provides a structured interface for managing the Microsoft Fabric OneLake catalog. It operates through distinct modes for governance auditing and metadata curation, ensuring that actions are performed with appropriate permissions and safety gates. The skill supports tenant-wide admin audits, data-owner governance checks, and item-level metadata curation, including descriptions, tags, and table/column metadata. It enforces strict write-gating and requires explicit owner approval for all changes to ensure data integrity and security.

What it does

  • Audits tenant-wide or workspace-specific governance posture.
  • Curates item metadata including descriptions, display names, and tags.
  • Manages table and column descriptions for items with OneLake Tables.
  • Performs guarded remediation for domains, workspace assignments, and capacities.
  • Provides dry-run capabilities for governance and remediation tasks.
  • Enforces strict write-gates requiring explicit user approval for all changes.

When to use it

  • When you need to audit governance posture across a Fabric tenant or specific workspaces.
  • When an item owner needs to improve discoverability through metadata curation.
  • When a data owner needs to remediate workspace domain, capacity, or tag assignments.
  • When a tenant admin needs to perform bulk governance updates or policy enforcement.

Advantages

  • Provides a unified, mode-based workflow for both auditing and remediation.
  • Enforces safety by requiring explicit approval for all write operations.
  • Supports granular, least-privileged access for data owners.
  • Includes built-in logic for handling long-running operations and API rate limits.
  • Ensures governance findings are actionable and prioritized.

Usage examples

“Propose a better description for the semantic model Sales Model in the Finance workspace.”
The agent will read the current item metadata, draft a suggested description based on content, and present it for owner approval before applying the change.
“Audit our tenant's OneLake catalog governance posture and prioritize the findings.”
The agent will perform a tenant-wide audit, applying the necessary scope filters, and report findings categorized by pillar with recommended actions.
“Which workspaces I administer are not assigned to a domain?”
The agent will identify and list all workspaces within the caller's scope that lack a domain assignment.
“Show a dry run for assigning these workspaces to the Finance domain, including current assignments.”
The agent will perform a read-only check to display the current domain assignments and the proposed changes for the specified workspaces.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/microsoft/onelake-catalog-cli/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip onelake-catalog-cli.zip -d .agents/skills

Documentation by Microsoft

Telemetry — MANDATORY. Every api.fabric.microsoft.com call must carry x-ms-fabric-skill: onelake-catalog-cli (az rest: --headers "x-ms-fabric-skill=onelake-catalog-cli"), including every LRO poll, fabric_lro and retry. Snippets omit it — add it anyway.

CRITICAL NOTES

  1. To find the workspace ID from its name, one call: az rest --method get --resource "https://api.fabric.microsoft.com" --url "https://api.fabric.microsoft.com/v1/workspaces" --query "value[?displayName=='<name>'] | [0].id" -o tsv (follow continuationToken only if it isn't on the first page; details in COMMON-CLI.md § Finding Workspaces and Items in Fabric).

  2. To find an item's ID, one call: the same on .../v1/workspaces/{ws}/items?type=<Type> with --query "value[?displayName=='<name>'] | [0].id".

  3. Write-gated skill — never call a write API before its gate below has passed. For curation that means the owner reviewed every proposed change and explicitly confirmed — not even a "test" write to check whether a change is allowed or what is already applied.

  4. The item list and Get Item both return an item's tags. An item with no tags has no tags field — that absence means untagged.

OneLake Catalog — CLI Skill (mode dispatcher)

One skill for the OneLake catalog. Govern (catalog health, protection and trust: audits and guarded remediation, by permission tier) and curate (an owner improving specific items' discoverability metadata) are modes, each detailed in a reference loaded on demand. This file picks the mode, holds every write gate, and indexes the references.

Mode selection

ModeUse whenLoadWrites
curateAn owner wants specific items easier to find: a description, a clearer display name, tags, or table and column descriptions (items with a OneLake Tables folder) — one item, an explicit list, or one named workspace's weakly-described itemsreferences/curate.md✅ after the owner approves each suggestion
dataowner-auditA non-admin workspace or domain owner wants governance posture for workspaces they administer (widen to accessible on request; Core API)references/dataowner-audit.md❌
dataowner-remediateA data owner who is also a domain / workspace / capacity admin fixes a governance finding — single-workspace domain or capacity assignment, workspace tags, refresh, item identity (Core & Power BI APIs, no tenant admin), including dry runs of thesereferences/dataowner-remediate.md✅ self-service
admin-auditA Fabric tenant admin wants tenant-wide governance posture (/v1/admin/*)references/admin-audit.md; any tenant count starts from admin-audit-scope.md❌
admin-remediateA Fabric tenant admin makes tenant-wide writes — domains, bulk assignment, domain roles, bulk labels, tenant tag definitions, tenant settingsreferences/admin-remediate.md✅

Govern is a 2×2 grid — tier (which API surface the caller can reach) × action (audit vs remediate) — covering the health, protect and trust pillars. Choose the tier by API surface, not job title: the admin-* modes need the Fabric tenant administrator role (Fabric admin / Power Platform admin / M365 global admin); domain, capacity and workspace admins who are not tenant admins live entirely in the dataowner-* modes.

Mode boundary rules
  • A direct curation request goes straight to curate. Read the target item's current state — don't run a governance audit first. Curation needs neither tenant admin nor workspace Admin; each change has its own permission (see curate.md).

  • Governance starts with an audit. Never remediate before establishing the current state; audit → remediate within the same tier unless the caller's rights change.

  • Curate is the only writer of item metadata. Item descriptions and display names, applying or removing an item's tags, and table and column descriptions are written only in curate. Workspace tags stay in dataowner-remediate; tenant tag definitions in admin-remediate.

  • Govern finds, curate fixes. Govern reports description and tag coverage — presence, with scope, denominator and freshness caveats, not proof the text is accurate; curate judges content and proposes. To fix selected gaps, hand off to curate with: a bounded target (an explicit item list with workspace ID, item ID and type, or one named workspace — never the whole tenant: ask the user to pick), the observed gap with its source and time (a candidate to recheck, not current truth), only the fields the user chose ("fix missing descriptions" = description only), and known access limits and owner contacts. A remediation is done only when curate has verified the write.

  • Audit modes never write. If a write is asked for in an audit mode, switch explicitly to the matching remediate mode or to curate — don't improvise a write.

  • A dry run or preflight of a fix loads that fix's remediate mode and stays read-only there — it isn't an audit. Moving one workspace to a domain is dataowner-remediate; bulk assignment is admin-remediate.

  • Finding items when the workspace isn't known belongs to search-consumption-cli. Looking up a workspace or domain by name, or an item by name inside a known workspace, is not discovery: use the lookups in CRITICAL NOTES and don't load search-consumption-cli for it.

⚠️ Known Fabric gap. A domain or workspace admin who is not a tenant admin has no API for their scoped governance posture: /v1/admin/* rejects them and the Core API can't list a domain's workspaces. dataowner-audit covers only workspaces the caller can access — say so up front rather than routing into an admin-* mode that will 401/403.

Terminal write — the step you must not skip

Reading a reference, drafting suggestions or building a dry run is NOT completing a write. Each writing mode ends with the state-changing call(s) below, issued only after the gate for that write passes. If you did not issue it, nothing changed — say so rather than reporting success.

ModeTerminal write
curatePATCH /v1/workspaces/{ws}/items/{id} (description; display name in a separate call), POST .../items/{id}/applyTags or unapplyTags, and for a table POST https://onelake.table.fabric.microsoft.com/common/v1/{ws}/{item}/schemas/{schema}/tables/{table}/additionalMetadata with the complete set from a fresh read — only for suggestions the owner accepted
dataowner-remediatePOST /v1/workspaces/{id}/assignToDomain / unassignFromDomain (synchronous 200), assignToCapacity (202 — poll to a terminal state), POST /v1/workspaces/{id}/applyTags / unapplyTags (workspace tags), item identity, semantic model refresh
admin-remediate/v1/admin/* writes — domains, bulk workspace assignment, domain roles, labels, tenant tag definitions, tenant settings
dataowner-audit, admin-auditnone — read-only

Before reporting a write done, confirm an explicit success (200/201, or a terminal LRO success for a 202) and read the result back.

Write gates — must pass first
WriteModeGate
Any curation writecurateThe owner saw a numbered current → proposed preview of every suggestion and explicitly approved; "apply all" covers only what was shown. Approving an audit or picking a remediation never approves text the owner hasn't seen.
Table and column descriptionscurateA write replaces the table's whole additional metadata: re-read, change only the approved descriptions, send the complete set in the same command, read again. The API has no concurrency check — never claim concurrent edits were preserved. A shortcut table is written on its source — name it and get explicit confirmation.
Delete a domainadminCheck subdomains (parentDomainId) and assigned-workspace counts for the domain and every subdomain; if workspaces would be orphaned, STOP and get explicit confirmation naming them. The API has no cascade-block. See domain-crud.md.
Delete a tag definitionadminReport how many items carry it first — deletion detaches it everywhere with no undo.
Bulk-assign workspaces to a domainadminCheck each target's current domainId and warn before silently overriding an assignment. Dry-run the target list first.
Remove a principal from a domain roleadminConfirm it will not leave the domain ownerless; name the principal being removed.
Bulk sensitivity-label changeadminDry-run: show the affected items and before/after label, get confirmation. No service principal / managed identity — the call will fail.
Write a tenant settingadminRead and show the current value, then the proposed value — tenant-wide blast radius.
Assign / unassign one workspace to a domaindataownerA move is a reassignment — confirm the current domainId and name the domain it leaves. Needs domain contributor and workspace Admin; say which is missing on failure.
Reassign item ownership (item identity, preview)dataownerAssigns to the caller only; needs Write on the item and its children. Confirm the intended identity.
Assign a workspace to a capacitydataownerNeeds workspace Admin plus capacity Contributor/Admin. 202 is not success — poll to a terminal state.
Apply / remove a workspace tag (preview)dataownerNeeds workspace Admin. Name the workspace and the tags, and confirm. Removing an applied tag is not deleting its definition.

Don't promise a write that has no API. Endorsement, DLP policies, an owner changing a sensitivity label, and tenant-admin item deletion have no write route — say so and name who can act (no-write-api-escalation.md). A SQL Database's display name is fixed at creation: never send a rename for it, even when the owner asks for one — say it can't be renamed and offer the description and tags instead.

Shared essentials (all modes)

  • Prerequisites: auth & tokens · REST, pagination, LRO, rate limits · CLI auth recipes · az rest (always pass --resource) · OneLake via curl (Storage-audience token) · OneLake shortcuts.

  • Resolve workspace and item IDs with the one-call lookups in CRITICAL NOTES 1–2.

  • Keep tool calls few. Each call re-sends the whole conversation, so extra calls are slow and costly. Combine related reads in one script, and don't re-open a doc you've already read.

  • Read an item's definition in one command that waits for the long-running operation itself (a semantic model usually returns 202) — never poll it in separate calls. It waits as long as Fabric's Retry-After asks (often 20–30 s), so give the command up to 3 minutes: if your shell tool has a wait or timeout setting, raise it rather than letting the command move to the background. Only for types with a definition: Warehouse, SQL Database, SQL analytics endpoint, ML model/experiment and Datamart have none — read their schema instead. PowerShell 7 (bash: fabric_lro in COMMON-CLI.md):

    $h = @{ Authorization = "Bearer $(az account get-access-token --resource https://api.fabric.microsoft.com --query accessToken -o tsv)"; 'x-ms-fabric-skill' = 'onelake-catalog-cli' }
    $st = @{ n = 0; end = (Get-Date).AddMinutes(3) }
    # Waits the full Retry-After (202 and 429); backs off 2-30 s only when the header is missing or invalid.
    function Wait-RetryAfter($r) { $ra = 0
      if (-not [int]::TryParse("$(@($r.Headers['Retry-After'])[0])", [ref]$ra) -or $ra -lt 1) { $ra = [Math]::Min(30, [Math]::Pow(2, ++$st.n)) }
      if ((Get-Date).AddSeconds($ra) -gt $st.end) { throw "Definition read did not finish within 3 minutes." }
      Start-Sleep -Seconds $ra }
    while (($r = Invoke-WebRequest -Method Post -Uri "https://api.fabric.microsoft.com/v1/workspaces/$WS_ID/items/$ITEM_ID/getDefinition" -Headers $h -SkipHttpErrorCheck).StatusCode -eq 429) { Wait-RetryAfter $r }
    if ($r.StatusCode -ge 400) { throw "getDefinition returned $($r.StatusCode): $($r.Content)" }
    $def = if ($r.StatusCode -eq 202) {
      $op = [string]$r.Headers['Location']; $res = $r; $s = ''
      while ($s -notin 'Succeeded', 'Failed') {
        Wait-RetryAfter $res; $res = Invoke-WebRequest $op -Headers $h -SkipHttpErrorCheck
        if ($res.StatusCode -eq 200) { $s = ($res.Content | ConvertFrom-Json).status } elseif ($res.StatusCode -ne 429) { throw "Polling returned $($res.StatusCode): $($res.Content)" } }
      if ($s -ne 'Succeeded') { throw "Definition read failed: $($res.Content)" }
      while (($res = Invoke-WebRequest "$op/result" -Headers $h -SkipHttpErrorCheck).StatusCode -eq 429) { Wait-RetryAfter $res }
      if ($res.StatusCode -ge 400) { throw "Definition result returned $($res.StatusCode): $($res.Content)" }
      $res.Content | ConvertFrom-Json
    } else { $r.Content | ConvertFrom-Json }
    $dir = New-Item -ItemType Directory -Force -Path (Join-Path ([IO.Path]::GetTempPath()) "def-$ITEM_ID")
    foreach ($p in $def.definition.parts) {
      $t = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($p.payload)); $f = Join-Path $dir ($p.path -replace '[\\/:]', '_'); Set-Content -LiteralPath $f -Value $t
      "== $($p.path) ($($t.Length) chars)"; if ($t.Length -le 4000) { $t } else { $t.Substring(0, 4000); "[first 4000 of $($t.Length) chars; full text in $f]" } }

    A part cut at 4,000 characters is saved in full: read the rest (one call) if what's shown isn't enough.

  • Use the exact Fabric Admin, Core, Power BI, Graph or OneLake API surface the mode documents; a 401 or 403 is never permission to bypass RBAC.

Rules

MUST
  • Load exactly one mode reference for the request and follow it end to end; come back to the index below when another procedure is needed. In curate, also read the suggestion guidance before drafting anything, and the table metadata reference before any table or column work.

  • (curate) Propose exactly what the owner asked for. A specific request gets only that: "add a description" → the item description; "suggest tags" → tags; "describe the table" → the table description only; "describe the columns" → column descriptions only; "describe the item's objects" or "its tables and columns" → both. A general request ("curate this item", "make it more discoverable", "improve its metadata") gets the item's description, name and tags; an item with a OneLake Tables folder also gets its table and column descriptions. If the owner names several items, cover each one, and report each with only the fields it has.

  • (curate) Check the scope before any call. Curate covers one item, an explicit list of items, or one named workspace at a time. For a tenant-wide request ("all my items", "every workspace"), say plainly that it isn't supported and offer one named workspace or an explicit list; for several named workspaces, ask which to start with. Don't list workspaces or items first.

  • (govern) State scope, exclusions, pagination completeness, and freshness caveats with every governance statistic.

PREFER
  • Least-privileged Core or Power BI APIs for data-owner actions instead of requiring tenant-admin rights.

  • Findings as evidence, consequence, recommended action, priority and effort — not an inventory dump.

  • Sequencing ownership and access-scope fixes before bulk assignment or labeling.

AVOID
  • Mutating a tenant from an audit mode, or reporting an asynchronous 202 as completion.

  • Inventing write APIs for endorsement, DLP policy, admin item deletion, or third-party item-identity assignment.

  • (curate) Volunteering anything about table or column descriptions for items without a OneLake Tables folder (semantic models, reports, notebooks, pipelines, dataflows, …). For these items, description, name and tags are the complete list — present them without qualifiers in the preview and whenever you say what the skill can do (e.g. while declining a request, or offering what else you could review next). Don't add a note that table or column descriptions are N/A, don't apply or aren't covered, and don't offer them: the owner didn't ask. Only if they ask, answer that they aren't supported for that item type, then stop and let the owner choose — don't load another skill or draft those descriptions yourself.

  • (curate) Saying "sub-items" — use the owner's words: "tables" and "columns", or "objects" when speaking generally.

References

Each reference is one hop from this index; after loading one, return here when another is needed.

Curate

Govern — shared

Govern — modes

  • Admin audit — tenant-wide read-only governance assessment

  • Admin audit scope — governable denominator (active workspaces of type Workspace), exclusions, and known blind spots

  • Admin audit assessment — end-to-end evaluative workflow, prioritization, and deliverable contract

  • Admin remediate — tenant-wide guarded writes through Admin APIs

  • Data-owner audit — caller-scoped read-only checks through Core APIs, including a workspace's domain assignment

  • Data-owner workspace health — empty and inactive workspaces within the caller's scope

  • Data-owner remediate — least-privileged Core and Power BI writes: moving one workspace to a domain, capacity, workspace tags, refresh, item identity

Govern — admin audit procedures: domain health · workspace health · capacity health · item inventory · item health · protect coverage · trust curation

Govern — admin remediation procedures: domain lifecycle · bulk workspace assignment (tenant admin) · domain roles · tag definitions · item sensitivity labels · domain default labels · trust remediation · no-write escalation

Examples

I'm curating my items for the OneLake catalog. Propose a better description for the semantic model Sales Model in the Finance workspace.
Make the lakehouse LSEGDemo more discoverable — describe its tables and columns too.
Audit our tenant's OneLake catalog governance posture and prioritize the findings.
Which workspaces I administer are not assigned to a domain?
Show a dry run for assigning these workspaces to the Finance domain, including current assignments.
Find unlabeled items tenant-wide and explain which remediations require a tenant admin versus a data owner.

Files

references/admin-audit.md

<!-- MODE REFERENCE for onelake-catalog-cli (mode: admin-audit). Loaded on demand by the dispatcher SKILL.md. -->

OneLake Catalog Govern — Admin Audit (read-only) CLI Skill

Contents

  • Prerequisites — Admin Access Required

  • Prerequisite Knowledge

  • Reference Files (load on demand)

  • Must/Prefer/Avoid

  • Gotchas and Troubleshooting

Read-only assessment of Fabric tenant governance posture across the three OneLake catalog Govern pillars — data estate health, protect/comply, and trust/curate — using the Fabric Admin REST API.

An audit is not a data dump. For evaluative questions, every finding must carry why it matters, a recommended action, and a priority — see the Deliverable Contract. For plain lookups, answer directly; see Which steps apply.

Routing already happened. The dispatcher SKILL.md is the single source of truth for the 2×2 mode grid, routing rules, and the permission-tier / known-gap notes. This is the admin-audit mode reference — reached when a Fabric tenant admin wants a read-only audit.

CRITICAL NOTES

  1. Default scope is tenant-wide, not personal. Every audit in this mode covers the whole tenant — use the Admin APIs (/v1/admin/*), not the user-scoped Core control-plane APIs, and state the scope in your answer.

  2. 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

  3. These are Admin APIs, not the standard /v1/workspaces control-plane APIs — they require the caller to hold a Fabric/Power BI admin role on the tenant. A 403 here means insufficient admin rights, not a token/audience bug.

  4. "Domain" in this skill means a Fabric governance domain (grouping of workspaces for policy/ownership). This is unrelated to Fabric IQ ontologies/knowledge graphs (skills/fabriciq), which share the word "domain" only informally — do not conflate the two.

  5. "Data product" and "steward" are not Fabric entities — there is no such item type, API, or role. Translate them to real entities (endorsed/certified items; Domain admin / Domain contributor / item owner) rather than inventing API calls. See catalog-concepts.md. But "who stewards this domain?" is still answerable — read the domain's Admin role assignment, and treat a missing one as a real gap (Find Ownerless Domains).

  6. Admin governance insights lag by up to 24 hours (Admin Monitoring Storage refreshes daily). Never present tenant-wide governance numbers as real-time.

  7. Two different APIs, two different token audiences. Fabric Admin APIs (https://api.fabric.microsoft.com) provide the all-Fabric item inventory, including descriptions and tags. Sensitivity labels and endorsement require the Power BI scanner API (https://analysis.windows.net/powerbi/api) and cover only scanner-supported artifact types.

Prerequisites — Admin Access Required

⚠️ Fabric/Power BI tenant admin role is mandatory. Every endpoint in this skill lives under /v1/admin/*. Regular workspace members/contributors — even with full access to their own workspaces — cannot call these APIs. Before running anything in this skill, confirm with the user (or verify via az account show + a test call) that the signed-in identity holds a tenant admin role. If a call returns 403, stop and tell the user they need admin rights granted — do not attempt workarounds or alternate endpoints to bypass this.

Not a tenant admin? Use dataowner-audit mode instead — it checks domain assignment for the caller's own workspaces via the Core (non-admin) API. Note it has a real scope limit: it cannot detect empty domains or provide tenant-wide domain-assignment analysis, since no Core API lists all workspaces in a domain.

Prerequisite Knowledge

  • govern-pillars.md — read first: the three pillars (health / protect / trust), what "good" looks like, common gaps, and reporting conventions

  • govern-roles.md — who can do what; Fabric admin vs. data owner insight scope and refresh lag

  • catalog-concepts.md — entity model; which concepts are API-backed vs. conceptual ("data product", "steward")

  • Repository common/COMMON-CORE.md — Fabric REST API patterns, auth, pagination, capacity management

  • Repository common/COMMON-CLI.md — CLI implementation (az rest, pagination pattern, quick reference); see § Authentication Recipes for az login flows and token acquisition

Reference Files (load on demand)

This file holds what every audit needs: the scope gate, blind spots, the posture workflow, the deliverable contract and cross-cutting gotchas. Detailed procedures and their procedure-specific gotchas live in references/ — read the one matching the question, not all of them.

FileRead it when the question is about
admin-audit/health-domains.mdDomains: what exists, assignment gaps, ownerless domains, metadata completeness. Includes worked end-to-end examples
admin-audit/health-workspaces.mdWorkspaces: unused/empty vs. inactive, admin bus-factor and >= N admin policy. ⚠️ Zero-admin workspaces do not occur — report single-admin (89% verified)
admin-audit/health-capacity.mdCapacities: state, ownership, domain alignment. ⚠️ No utilization/overload API exists
admin-audit/item-inventory.mdHow to get items at all — Admin API vs. scanner API, and which returns what. Shared by all three pillars — read before the two below
admin-audit/health-item.mdItem ownership, item identity (defaultIdentity), departed owners, staleness, data freshness (refresh state)
admin-audit/protect-labels-dlp.mdPillar 2 — sensitivity label coverage, DLP
admin-audit/trust-curation.mdPillar 3 — endorsement, description and tag coverage (freshness is audited under Health — see admin-audit/health-item.md)

Shared repository-wide API background lives in common/; this skill's pillar map, role model, entity model, and verified field coverage live directly in this skill's references/ directory.

Regardless of which reference you load, the Scope Gate below applies to all of them. Only 47% of a verified tenant was governable — scope first, or every statistic is wrong.


Must/Prefer/Avoid

MUST DO
  • Authenticate with an admin-scoped identity — see COMMON-CORE.md § Authentication & Token Acquisition. Admin APIs require the signed-in user/SPN to hold a Fabric/Power BI admin role.

  • Apply the Scope Gate — ?type=Workspace&state=Active, built once and reused for every pillar, with exclusions stated. This is the single most important correctness step in the skill.

  • Paginate fully via continuationUri before drawing conclusions — partial results understate gaps.

  • Deliver findings, not measurements — when the question is evaluative. Every finding then carries why it matters, a recommended action, and a priority; a count without interpretation is not an audit. For a plain retrieval question, answer it plainly instead. See Which steps apply and the Deliverable Contract.

  • For domain-health reviews, report each finding type explicitly — assignment gaps, empty domains, ownership risks, contributor-scope risks, default-label gaps, description coverage, and clean/pass findings. Do not mention one only in recommendations if it was observed in evidence.

  • Report both raw counts and percentages — "897 of 1,037 active workspaces (86.5%) unassigned" is more actionable than either alone.

  • Structure findings by pillar (health / protect / trust) — matching the OneLake catalog Govern tab. See govern-pillars.md § Reporting Conventions.

  • State the freshness caveat whenever findings derive from admin monitoring data — up to 24 hours stale.

  • Bucket unresolvable references instead of dropping them — workspaces whose capacityId is not in the capacity list (36% verified), and items whose workspaceId matches no workspace. A silently smaller denominator is the most common cause of a wrong governance percentage.

  • Resolve identities before making ownership claims — creatorPrincipal.type is always "User", even for service principals. Use Graph getByIds with no types filter, or state that ownership was not assessed.

PREFER
  • Sample, don't dump — show 10-15 example names inline; offer a full CSV export only if asked.

  • Named list of empty domains over just a count — the user wants to know which.

  • Ownership gaps reported alongside assignment gaps — "which domains have no owner" is as actionable as "which workspaces have no domain", and users often ask for it using the word "steward".

  • Surface cross-pillar combinations first — a certified but stale item, or a broadly shared but unlabeled item, is higher-priority than either signal alone.

  • Calibrate against tenant intent before ranking. Test/dev tenants (heavy Deleted counts, dated or E2E_/test-prefixed workspace names) make coverage gaps expected rather than alarming. Ask rather than presenting a headline percentage as a KPI.

  • Rank abandonment findings by combination, not any single signal — empty + inactive + unassigned is a real candidate; empty alone is not, and 11 verified empty workspaces had same-day activity.

  • One scanner call for both users and Power BI governance metadata — getInfo?getArtifactUsers=True returns workspace roles, labels, and endorsement in the same scan. Scanning twice wastes the 100-workspace budget.

AVOID
  • Do NOT deliver a bare inventory in answer to an evaluative question. Counts, tables and percentages with no interpretation, recommended action or priority are the most common failure mode of this skill.

  • Do NOT wrap a plain retrieval answer in audit ceremony either. "List all domains" wants the list, not a priority-ranked remediation plan — see Which steps apply.

  • Do NOT rank remediation by the size of the number. The largest gap is frequently the lowest-priority action — see Step 4.

  • Do NOT confuse this with skills/fabriciq or skills/semantic-model-consumption — those query data inside Power BI semantic models/reports, not tenant governance metadata.

  • Do NOT confuse Fabric admin "Domains" with Fabric IQ (preview) ontologies — different products, overlapping terminology only.

  • Do NOT treat a 403 as a code bug — it means the identity lacks admin rights on the tenant.

  • Do NOT invent APIs for "data products" or "stewards" — they don't exist; translate them to real entities first.

  • Do NOT present domain membership as an access/security control — it does not affect item visibility or permissions. Findings about it are catalog-integrity findings, not data-leakage findings.

  • Do NOT claim a capacity is overloaded, throttled, or near its CU limit — no API exposes utilization (verified 404 on all four candidates). Point to the Fabric Capacity Metrics app.

  • Do NOT report that an item's owner left the organisation from a failed identity lookup — verified 11 false positives vs. 0 genuine orphans.

  • Do NOT treat zero-admin workspaces as a routine check — verified 0 of 1,063. Report single-admin instead, or the check silently signals a clean bill of health.

  • Do NOT treat an item's lastUpdatedDate as a usage signal — it records modification, so a heavily-read, never-edited certified dataset looks abandoned.


Gotchas and Troubleshooting

Cross-cutting issues. Procedure-specific gotchas live with their procedure — see the Gotchas section at the end of health-workspaces.md, health-capacity.md, health-item.md and item-inventory.md.

SymptomCauseFix
403 Forbidden on any /admin/* callSigned-in identity lacks Fabric/Power BI admin roleHave a tenant admin grant the role; this is not a token audience issue
401/403 on api.powerbi.com scanner calls while Fabric admin calls workWrong token audience — the scanner API needs https://analysis.windows.net/powerbi/apiAcquire a second token for that resource; the Fabric token will not work
domainId missing from workspace objectsThe workspace has no domain assigned (expected null, not an error)Treat as a gap finding, not a bug
Any count, percentage or gap list looks roughly 2× too highDeleted, personal or admin-monitoring workspaces in the denominator; or items in deleted workspacesApply the Scope Gate. A verified tenant was only 47% governable
View A / View B counts differ by a small number, and the extra workspaces are all DeletedDeleted workspaces retain domainId; domain-side lists exclude themFilter to state == "Active" before grouping — see Deleted Workspaces
Domain shows workspaces via tenant-wide filter but 0 via /admin/domains/{id}/workspacesAll its workspaces are deleted, or a stale domainId / caching lagIf all deleted, the domain is genuinely empty — report it as such. Otherwise re-run after a few minutes and treat any residual discrepancy as a platform data issue, not an audit finding
Pagination stops earlycontinuationUri not followed to completionLoop until the field is absent/null — see repository common/COMMON-CLI.md § Pagination Pattern
RequestBlocked / "blocked by the upstream service until <time>"Admin API throttling; the message carries a retry-after timestampWait it out and cache the inventory — do not re-fetch it per check
Governance numbers don't match what the user sees right nowAdmin insights derive from Admin Monitoring Storage, refreshed once per dayState the up-to-24h lag; a data owner's My items view refreshes on open and will legitimately differ
Govern-tab figures exclude items you expectSubitems (tables), third-party workload items and guest/cross-tenant content are out of scope; Govern tab is unavailable with Private LinkSee govern-pillars.md § Known Limitations
Tempted to edit the autogenerated governance report or semantic modelIt is admin-managed and read-only by designNever modify it; build a separate report from the API data instead
User asks about "data products" or "stewards"Not Fabric entities — no item type, API, or role existsTranslate to endorsed/certified items and Domain admin / Domain contributor / item owner; see catalog-concepts.md
Confusing this skill with Fabric IQ ontology docs"Domain" terminology overlapUnrelated features; use skills/fabriciq for ontology/knowledge-graph work
Zero certified items reportedCertification may never have been enabled in tenant settingsCheck enablement (and whether it was delegated to domain admins) before reporting a curation failure
The report is a wall of numbers with no recommendationSteps 4 and 5 skippedFindings without why it matters, an action and a priority are not an audit — see the Deliverable Contract

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Microsoft
Publisher
Microsoft (Official)
Source
microsoft/skills-for-fabric · skills/onelake-catalog-cli · commit f8fac11
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Also distributed in
microsoft/skills-for-fabric

AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download onelake-catalog-cli.zip