帮助将 Databricks 笔记本、作业与数据路径系统迁移到 Microsoft Fabric。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "databricks-migration" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/skills-for-fabric/main/plugins/fabric-skills/skills/databricks-migration/SKILL.md 2. 保存为 ~/.claude/skills/databricks-migration/SKILL.md 3. 装好后重载技能,告诉我可以用了
请把这段 Databricks 笔记本代码迁移到 Microsoft Fabric,重点替换所有 dbutils 调用为 notebookutils 或 Fabric 对应方案,并说明每一处改动原因:{{code}}返回可在 Fabric 中使用的改写代码,并逐项说明 dbutils 替换方式。
我需要把 Databricks 的三层命名空间和 DBFS 路径迁移到 Fabric。请将下面的表名、目录与路径映射为 Lakehouse/Schema 和 OneLake 结构,并给出转换表:{{assets}}输出命名空间压缩与路径转换清单,说明哪些对象应映射到 Lakehouse、Schema 或 OneLake。
请把这些 Databricks Jobs 或 Delta Live Tables 配置迁移为 Microsoft Fabric 的 Spark Job Definitions 或等效实现,并标出不兼容项与替代方案:{{job_config}}返回 Fabric 作业配置建议、迁移步骤以及不兼容能力的替代实现说明。
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.- 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 NOTES
- To find workspace details (including its ID) from a workspace name: list all workspaces, then use JMESPath filtering
- To find item details (including its ID) from workspace ID, item type, and item name: list all items of that type in that workspace, then use JMESPath filtering
dbutils.widgetshas no direct equivalent in Fabric — use notebook parameters (cell tagparameters) ornotebookutils.runtime.contextfor context injectiondbutils.library(runtime library install) has no equivalent — use Fabric Environments for reproducible library management- Unity Catalog uses a 3-level namespace (); Fabric Lakehouse uses 2-level ( within a named Lakehouse)
catalog.schema.tableschema.tableRead these companion documents before executing migration tasks:
az rest, az login, token acquisition, Fabric REST via CLIFor notebook and Lakehouse creation, see spark-authoring-cli. For Fabric Warehouse DDL/DML authoring, see sqldw-authoring-cli.
| Topic | Reference |
|---|---|
| Migration Workload Map | § Migration Workload Map |
Complete dbutils → notebookutils Mapping | dbutils-to-notebookutils.md |
| Unity Catalog → Fabric Lakehouse Schemas | catalog-migration.md |
| Before/After Code Patterns | code-patterns.md |
| Cluster Config → Fabric Spark Pools | § Cluster Config → Fabric Spark Pools |
| Databricks Jobs → Spark Job Definitions | § Databricks Jobs → Spark Job Definitions |
| Delta Sharing → OneLake Shortcuts | § Delta Sharing → OneLake Shortcuts |
| MLflow → Fabric ML Experiments | § MLflow → Fabric ML Experiments |
| Must / Prefer / Avoid | § Must / Prefer / Avoid |
| Authentication & Token Acquisition | COMMON-CORE.md § Authentication |
| Lakehouse Management | SPARK-AUTHORING-CORE.md § Lakehouse Management |
| Notebook Management | SPARK-AUTHORING-CORE.md § Notebook Management |
| Databricks Component | Fabric Target | Notes |
|---|---|---|
| All-purpose cluster (notebooks, REPL) | Fabric Notebook (Starter Pool or Custom Pool) | No persistent cluster — Fabric provisions compute on session start |
| Job cluster (automated jobs) | Spark Job Definition (SJD) | SJD maps one-to-one with Databricks Jobs on job clusters |
| Unity Catalog | Fabric Lakehouse (schema per namespace) | See catalog-migration.md |
| Databricks Repos (Git-backed notebooks) | Fabric Git Integration | Connect workspace to Azure DevOps or GitHub; notebooks are synced |
…
帮助将 Azure Synapse Spark 工作负载迁移到 Microsoft Fabric 并完成代码替换。