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/dataowner-remediate.md

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

OneLake Catalog Govern — Data Owner / Operational Admin Remediate (Core-API write) mode

Contents

  • Prerequisite Knowledge

  • Permission model — read before any write

  • Must/Prefer/Avoid

  • Assign / Unassign One Workspace to a Domain (Core API, no tenant admin)

  • Apply or Remove Workspace Tags (workspace Admin, preview)

  • Item Descriptions, Names and Item Tags — hand off to curate

  • Trigger a Semantic Model Refresh (Power BI API, workspace member)

  • Reassign Item Ownership (Item Identity, Preview) (item Write; assigns to caller)

  • Assign a Workspace to a Capacity (workspace and capacity roles)

  • What a data owner still CANNOT do

The non-admin write path. These are the governance fixes a data owner who is also a domain / workspace / capacity admin can make without a Fabric tenant admin role, using the Core and Power BI REST APIs (not /v1/admin/*). This is the 4th cell of the Govern grid: {data-owner tier} × {remediate}.

For the tenant-wide, admin-API write path (create/delete domains, bulk domain assignment, domain role assignment, bulk labeling, certification enablement), use the admin-remediate mode instead: admin-remediate.md. To find what needs fixing first, use an audit mode: dataowner-audit.md (own workspaces) or admin-audit.md (tenant-wide).

Prerequisite Knowledge

  • govern-roles.md — read first: what a data owner / domain contributor / workspace admin can and cannot do

  • catalog-concepts.md — entity model; which concepts are API-backed

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

  • Repository common/COMMON-CLI.md — CLI implementation (az rest, auth recipes)

Permission model — read before any write

Every operation here is scoped by a workspace or domain role the caller already holds, not by tenant admin. A 403 means the caller lacks the specific role on the specific object — it is a real RBAC boundary, not a bug. Always name which of the required roles is missing rather than reporting a generic "permission denied".

Must/Prefer/Avoid

MUST DO
  • Confirm the caller holds BOTH required roles before an assignToDomain — domain contributor (or domain Admin) and workspace Admin. Holding one is the common failure; say which is missing.

  • Show current state before overwriting it — a workspace already in a domain is being reassigned; name the domain it is leaving. A workspace tag change should show before/after.

  • Use only Core reads for a single-workspace assignment preflight — resolve the workspace with GET /v1/workspaces, read its current domainId with GET /v1/workspaces/{id}, and resolve the target with GET /v1/domains. Do not switch to /v1/admin/* or the admin bulk-assignment procedure.

  • Hand item metadata to curate — item descriptions, display names and item tags are written only in curate mode. Pass a bounded target (explicit items, or one named workspace), the observed gap with its source and time, and only the fields the user chose.

  • Confirm workspace tag changes — name the workspace and the tags being applied or removed, and confirm. Removing an applied tag is not deleting its definition (that's admin-only — admin-remediate tags.md § Manage Tags).

PREFER
  • Fix the cause, not the symptom — a repeatedly stale model needs its schedule or data source fixed, not a manual refresh each time.

  • The least-privileged endpoint — these calls need workspace/domain roles, not tenant admin; don't send the user to get admin rights for an item-level fix.

AVOID
  • Do NOT report assignToDomain success from anything other than the synchronous 200 — and do NOT write LRO polling for it (it is not async, unlike the admin bulk methods).

  • Do NOT attempt to set item identity for a third party — the API assigns to the caller only.

  • Do NOT create/update/delete tenant tag definitions here — that needs tenant admin; route to admin-remediate.


Assign / Unassign One Workspace to a Domain (Core API, no tenant admin)

The fix for a data owner who can see their workspace is unassigned (from dataowner-audit.md) but has no tenant-admin rights. This is the Core API path for a single workspace.

Before proposing the write, execute this read-only Core preflight. Do not stop after printing example commands: inspect the live workspace and target domain unless the user explicitly asked for a plan only.

# Resolve the caller-visible workspace, then read its current domain assignment.
az rest --method GET --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces?roles=Admin"
az rest --method GET --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces/$WS"

# Resolve the target domain by displayName and paginate continuationToken.
az rest --method GET --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/domains"

If any read fails, report the corresponding state as unknown and stop the preflight. A failed lookup never proves that a workspace or domain is absent.

# Assign — live-verified: returns 200 SYNCHRONOUSLY (not 202/async like the admin bulk methods)
az rest --method POST --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces/$WS/assignToDomain" \
  --headers "Content-Type=application/json" \
  --body "{\"domainId\": \"$DOMAIN_ID\"}"

# Reverse — live-verified: 200, no request body
az rest --method POST --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces/$WS/unassignFromDomain"
⚠️ Two permissions are required, on two different objects

Per Learn, the caller must have contributor permissions on the domain (or be a domain Admin) and the workspace Admin role. Holding only one is the common failure:

Error codeMissing
InsufficientPermissionsToDomainRights on the domain
InsufficientWorkspaceRoleWorkspace Admin on the workspace

So this is not a general "non-admin can self-serve" escape hatch — it works only for someone who already sits on both sides of the assignment. If a data owner lacks domain contributor rights, they still need an admin. Say which of the two is missing rather than reporting a generic permission error.

PointDetail
ScopeWorkspace.ReadWrite.All. Users, service principals and managed identities are supported
Sync vs asyncSynchronous 200 — unlike the admin assignWorkspaces* bulk methods, which return 202 + Location. Do not write LRO polling for this call
UnassignUse unassignFromDomain. Passing {"domainId": null} to assignToDomain is rejected with 400 (InvalidParameter) — live-verified
ScaleOne workspace per call. For many workspaces with tenant admin, prefer the bulk methods in admin-remediate domain-assign-workspaces.md § Choosing a bulk-assignment method
OverridesMoving an already-assigned workspace here is a reassignment; confirm the current domainId first and tell the user which domain it is leaving

Apply or Remove Workspace Tags (workspace Admin, preview)

Tags an existing tag definition onto a workspace — needs workspace Admin, not tenant admin. Creating, renaming or deleting the tag definition is tenant-admin-only — see admin-remediate tags.md § Manage Tags. Tags on items are curate mode (next section).

# PREVIEW — needs workspace Admin; name the workspace and tags and confirm first
az rest --method post --resource https://api.fabric.microsoft.com \
  --url "https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/applyTags" \
  --body '{"tags":["<tagId>"]}'

# Remove an applied tag (the definition stays). The REST reference lists Fabric admin or a
# service principal for this call; on 403 as a workspace Admin, use workspace settings → Tags.
az rest --method post --resource https://api.fabric.microsoft.com \
  --url "https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/unapplyTags" \
  --body '{"tags":["<tagId>"]}'
ConstraintValue
Tags per workspace10
Rate limit25 req/min (apply)
Service principalSupported
Applicable tagsTenant tags, and domain tags whose domain is the workspace's current domain

Read the workspace back and confirm its tags before reporting the change done.


Item Descriptions, Names and Item Tags — hand off to curate

Remediates pillar-3 "low description coverage" and "low tag coverage" findings. Item descriptions, display names and item tags are written only in curate mode, which reads each item's content, drafts suggestions and gets the owner's approval for each one. Don't write them here.

Hand off with:

  • a bounded target — explicit items (workspace ID, item ID and type) or one named workspace; never the whole tenant (ask the user to pick);

  • the observed gap, its source and when it was seen — a candidate for curate to recheck;

  • only the fields the user chose — "fix missing descriptions" means descriptions only;

  • known access limits and owner contacts for items the caller can't write.

Approving the audit or this remediation doesn't approve any suggestion text. The fix is done only when curate has verified the write.


Trigger a Semantic Model Refresh (Power BI API, workspace member)

Remediates pillar-3 staleness findings. Power BI API only — there is no Fabric-native REST refresh endpoint.

az rest --method post --resource https://analysis.windows.net/powerbi/api \
  --url "https://api.powerbi.com/v1.0/myorg/groups/{workspaceId}/datasets/{datasetId}/refreshes" \
  --body '{"notifyOption":"NoNotification"}'
  • Requires Dataset.ReadWrite.All.

  • Shared capacity: max 8 refreshes per day, and only notifyOption is accepted — enhanced refresh (partitions, tables, retries, timeout) is Premium/Fabric-capacity only.

  • Prioritize certified-but-stale items first — see govern-pillars.md § Reporting Conventions.

  • A manual refresh treats the symptom; if a model is repeatedly stale, fix the schedule or the failing data source instead.


Reassign Item Ownership (Item Identity, Preview) (item Write; assigns to caller)

Fabric items historically depended on the creator for connection access, so they broke when that person left. Item identity replaces that with an explicitly assigned defaultIdentity. (Learn)

⚠️ This assigns the identity to the caller — you cannot set it to a third party

The documented body is {"assignmentType": "Caller"}. You are not transferring ownership to someone; you are claiming it yourself. It requires Write permission on the item and all child items. This is why it lives in the data-owner cell, not the admin cell — a tenant admin generally cannot run this on someone else's item; the incoming owner or workspace admin runs it themselves.

# Run AS the identity that should own the item (user, SPN or managed identity)
az rest --method POST --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces/$WS/items/$ITEM/identities/default/assign?beta=true" \
  --headers "Content-Type=application/json" \
  --body '{"assignmentType": "Caller"}'

Returns 202 Accepted with a Location header — a long-running operation. Poll it; do not assume success.

PointDetail
ScopeSets the identity on the item and all child items in one call
Failure modeIf a child assignment fails the operation stops — check errorInfo; partial application is possible
Supported typesLive-verified: Lakehouse, DataPipeline, Eventstream, Homeone, CopyJob, UserDataFunction. Learn lists only Lakehouse + Eventstream — probe, don't hard-code
Coverage588 of 14,941 items (3.9%) in a verified tenant — this fixes a small slice
Preview?beta=true is mandatory. Behaviour may change
Known issueThe type-qualified form (/lakehouses/{id}/identities/...) errors — always use the generic /items/{id}/ path

Verify afterwards with GET /v1/workspaces/$WS/items/$ITEM?include=defaultIdentity — the field is omitted unless you ask for it.


Assign a Workspace to a Capacity (workspace and capacity roles)

This Core API operation does not require the Fabric tenant-admin role. The caller must be a workspace Admin and a capacity Contributor or Admin, with Workspace.ReadWrite.All and Capacity.ReadWrite.All.

az rest --method post --resource https://api.fabric.microsoft.com \
  --url "https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/assignToCapacity" \
  --body '{"capacityId":"<capacityId>"}'
  • The call returns 202 Accepted. Poll workspace state until capacityId reaches the target; never report success from the initial response.

  • Fabric items can target Fabric, Fabric Trial, or Power BI Premium capacities.

  • Non-Power BI Fabric items cannot move across regions. Compare source and target regions before requesting confirmation.


What a data owner still CANNOT do

Route these to a tenant admin (admin-remediate) or the portal:

RequestWhy not here
Create / rename / delete a domain or subdomainAdmin API (/v1/admin/domains) — see admin-remediate.md
Create / delete a tenant tag definitionAdmin API (Tenant.ReadWrite.All) — see admin-remediate tags.md § Manage Tags
Assign domain admins / contributorsAdmin API — see admin-remediate domain-roles.md § Assign Domain Admins and Contributors
Bulk assign workspaces by admin or capacityAdmin API — see admin-remediate domain-assign-workspaces.md § Choosing a bulk-assignment method
Bulk sensitivity labels / domain default label / enable certificationAdmin/Power BI admin surface — see admin-remediate.md
Set endorsement (Promoted / Certified) badgeNo public REST API — portal only (item Settings → Endorsement). ⚠️ For Certified, first confirm certification is enabled in tenant settings and that you are in the designated certifier group — otherwise the Certified option won't even appear. Enablement is admin-only: see admin-remediate/trust-curate.md.

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