跨工作区查找 Microsoft Fabric 项目并返回所属工作区与相关 ID。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "search-consumption-cli" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/skills-for-fabric/main/skills/search-consumption-cli/SKILL.md 2. 保存为 ~/.claude/skills/search-consumption-cli/SKILL.md 3. 装好后重载技能,告诉我可以用了
帮我在所有 Microsoft Fabric 工作区中查找名为“Sales Lakehouse”的项目,并告诉我它所在的工作区名称、项目类型以及对应的工作区 ID 和项目 ID。
返回匹配项目列表,包含项目名称、类型、所属工作区及相关 ID。
列出我在所有 Microsoft Fabric 工作区中拥有的所有 Lakehouse,并按工作区分组显示每个项目的名称和 ID。
按工作区分组的项目清单,展示每个 Lakehouse 的名称与 ID。
我想知道“Marketing Dashboard”在哪个 Microsoft Fabric 工作区里。如果有多个同名项目,请全部列出并返回工作区 ID 和项目 ID。
返回包含该项目的工作区信息;若有重名,则列出所有匹配结果及其 ID。
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 the
check-updatesskill (e.g.,/fabric-skills:check-updates).- Claude Code / Cowork / Cursor / Windsurf / Codex: read the local
package.jsonversion, then compare it against the remote version viagit fetch origin main --quiet && git show origin/main:package.json(or the GitHub API). If the remote version is newer, show the changelog and update instructions.- Skip if the check was already performed earlier in this session.
CRITICAL NOTES
- The Catalog Search API finds items, not workspaces. To find a workspace by name, use
GET /v1/workspaces(see COMMON-CLI.md § Resolve Workspace Properties by Name).- The search text matches against item display name, description, and workspace name.
- Dataflow (Gen1) and Dataflow (Gen2) are not supported.
| Task | Reference | Notes |
|---|---|---|
| Search for an Item | SKILL.md § Search for an Item | By name, description, or workspace name |
| List All Items of a Type | SKILL.md § List All Items of a Type | Empty search + type filter |
| Pagination | SKILL.md § Pagination | Continuation token pattern |
| Agentic Workflow | SKILL.md § Agentic Workflow | |
| Examples | SKILL.md § Examples | |
| Gotchas and Troubleshooting | SKILL.md § Gotchas and Troubleshooting |
Catalog.Read.All scope."filter": "Type eq 'Lakehouse'" to reduce noise.jq for extracting IDs from the response — cleaner than JMESPath for nested hierarchy.workspace.GET /v1/workspaces instead (see COMMON-CLI.md § Resolve Workspace Properties by Name).eq, ne, or, and parentheses are supported.cat > /tmp/body.json << 'EOF'
{"search": "SalesLakehouse", "filter": "Type eq 'Lakehouse'", "pageSize": 10}
EOF
az rest --method post \
--resource "https://api.fabric.microsoft.com" \
--url "https://api.fabric.microsoft.com/v1/catalog/search" \
--body @/tmp/body.json
The search text matches against item display name, description and workspace name. Type filtering is optional. The response includes id, type, displayName, description, and hierarchy.workspace (with id and displayName) for each match.
az rest --method post \
…