跨工作区搜索 Microsoft Fabric 项目并定位其所属工作区与相关 ID。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "search-consumption-cli" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/skills-for-fabric/main/plugins/fabric-consumption/skills/search-consumption-cli/SKILL.md 2. 保存为 ~/.claude/skills/search-consumption-cli/SKILL.md 3. 装好后重载技能,告诉我可以用了
帮我在所有 Microsoft Fabric 工作区中查找名称为“SalesLakehouse”的项目,并告诉我它所在的工作区名称、项目类型以及项目 ID。
返回匹配项目的清单,包含所在工作区、项目类型和对应 ID。
列出我所有 Microsoft Fabric 工作区中的全部 Lakehouse 项目,并附上每个项目的工作区名称和工作区 ID。
输出所有指定类型项目,并按工作区展示其名称与 ID 信息。
请帮我确认“Marketing Dashboard”位于哪个 Microsoft Fabric 工作区,如果存在多个同名项目,也请全部列出并返回项目 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 \
…