synapse-migration
Skill1.2k starsChanged 2 months agoMITView on GitHub
Converts Azure Synapse workloads to Fabric: Dedicated SQL Pool schemas and procedures to Lakehouse Spark SQL artifacts or Warehouse targets, plus Spark, Lake Database, and Linked Service migration. Excludes standalone Fabric Warehouse administration, Databricks source code, and pipelines. Triggers: Dedicated SQL Pool to Lakehouse, Dedicated SQL Pool to Fabric Warehouse, convert Synapse stored procedure, offline Synapse artifacts.
- Reads credentials
- Installs packages
2 other projects use a version of this, 2 of them edited.
Trending
Less talk lately.thin dataabout the whole repository
Most recently taken up by
- alifadl009/microsoft-fabric-claude-skilledited, first seen Jul 13, 2026
- kimtth/ms-fabric-skills-dev-starteredited, first seen May 18, 2026
Who's talking about microsoft/skills-for-fabric
- bmad-code-org/BMAD-METHOD“BMAD as a Data Engineer”GitHub · Jun 19, 2026 · 1 reactions
- sudosubin/agents.nix“copilot-plugins.github.microsoft.skills-for-fabric: init at 0.3.18”GitHub · Oct 4, 2026
- sudosubin/agents.nix“copilot-marketplaces.github.microsoft.skills-for-fabric: init at 0.3.18”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.microsoft.skills-for-fabric: 0.3.17 → 0.3.18”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.microsoft.skills-for-fabric: init at 0.3.17”GitHub · Sep 30, 2026
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub (13 times).
On GitHub · 13
- Jun 19, 2026BMAD as a Data Engineer — bmad-code-org/BMAD-METHOD1 reaction · 2 comments
- Oct 4, 2026copilot-plugins.github.microsoft.skills-for-fabric: init at 0.3.18 — sudosubin/agents.nix0 reactions
- Oct 4, 2026copilot-marketplaces.github.microsoft.skills-for-fabric: init at 0.3.18 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.microsoft.skills-for-fabric: 0.3.17 → 0.3.18 — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.microsoft.skills-for-fabric: init at 0.3.17 — sudosubin/agents.nix0 reactions
8 more on GitHub
- Sep 25, 2026Bump @microsoft/powerbi-report-authoring-cli from 0.1.4 to 0.4.0 — quantameridian/powerbi-kpi-semantic-model0 reactions
- Aug 20, 2026fix: remove deprecated fabric-authoring, fabric-consumption, fabric-operations — github/copilot-plugins0 reactions
- Aug 17, 2026[BUG] Marketplace catalog outdated: `fabric-authoring`, `fabric-consumption` and `fabric-operations` — github/copilot-plugins0 reactions
- Aug 16, 2026Add Skills for Fabric to the catalog — gronnerup/fabricstack0 reactions
- Jul 2, 2026library: skills-for-fabric — gronnerup/fabricstack0 reactions
- Jul 2, 2026feat(plugin): ship a plugin marketplace so skills install in one command (GitHub Copilot CLI + Claude Code) — sdebruyn/fabric-dw-mcp-cli0 reactions · 1 comment
- Jun 29, 2026frabic skills — lagimik/PartnerCrucible0 reactions
- Apr 12, 2026[QUESTION] How to install the Skills for fabric-cli and keep them updated? — microsoft/fabric-cli0 reactions · 5 comments
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- alifadl009/microsoft-fabric-claude-skill★ 326% same
- kimtth/ms-fabric-skills-dev-starter★ 234% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- activator-cliSkill
- azmon-mirroredcatalogs-operations-cliSkill
- databricks-migrationSkill
- dataflows-cliSkill
- deployment-pipelines-authoring-cliSkill
- e2e-fabric-cost-estimationSkill
- e2e-medallion-architectureSkill
- eventhouse-cliSkill
- eventschemaset-cliSkill
- eventstream-cliSkill
- fabriciq-ontology-cliSkill
- fabriciqSkill
- git-integration-operations-cliSkill
- hdinsight-migrationSkill
- onelake-catalog-govern-cliSkill
- pipeline-migrationSkill
- project-osmosSkill
- search-consumption-cliSkill
- semantic-model-authoringSkill
- spark-cliSkill
- sqldb-cliSkill
- sqldw-cliSkill
- synapse-migrationSkill
- variable-library-cliSkill
- powerbi-report-cliSkill
- semantic-model-authoringSkill
- activator-cliSkill
- azmon-mirroredcatalogs-operations-cliSkill
- databricks-migrationSkill
- dataflows-cliSkill
- deployment-pipelines-authoring-cliSkill
- e2e-fabric-cost-estimationSkill
- e2e-medallion-architectureSkill
- eventhouse-cliSkill
- eventschemaset-cliSkill
- eventstream-cliSkill
- fabriciq-ontology-cliSkill
- fabriciqSkill
- git-integration-operations-cliSkill
- hdinsight-migrationSkill
- onelake-catalog-govern-cliSkill
- pipeline-migrationSkill
- powerbi-report-cliSkill
- project-osmosSkill
- search-consumption-cliSkill
- semantic-model-authoringSkill
- spark-cliSkill
- sqldb-cliSkill
- sqldw-cliSkill
- variable-library-cliSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
If the user requests a dedicated SQL pool migration without naming Lakehouse or Warehouse as the target, explain the two outcomes and ask …
- Distinctive: line 88
If data is approved, use a user-managed restored source copy and follow dw-data-migration.md for scoped CETAS export and COPY INTO …
- Distinctive: line 91
If data migration is declined, finish the metadata and security path, print its completion summary, and do not create CETAS resources.
- Distinctive: line 113
Re-test all notebooks: after migration against the target Fabric Runtime version — Spark minor version differences can surface deprecated …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Telemetry — MANDATORY. Every
api.fabric.microsoft.comcall must carryx-ms-fabric-skill: synapse-migration(az rest:--headers "x-ms-fabric-skill=synapse-migration"), including every LRO poll,fabric_lroand retry. Snippets omit it — add it anyway.
OFFLINE LAKEHOUSE ARTIFACT FAST PATH — DECIDE FIRST. For a no-live-call request with complete supplied inputs and contracts, load only the fast path; do not load
migration-planning-reference.md,dedicated-pool-conversion.md, or implementation scripts. Use one generator forexpected-schema.json, artifacts, and final-byte hashes, then one verifier. Do not manually edit artifacts or reread resources. Do not inspect generated files or run post-pass spot checks. Stop when verification passes or fails. Do not use this path for a Warehouse target; incomplete and large-procedure requests use their own routes.
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
mssparkutilsandnotebookutilsshare the same API surface in most cases — the namespace is the primary change- Linked Services have no direct REST API equivalent in Fabric — name both replacement categories when explaining the migration: Fabric Data Connections for external databases/services and OneLake Shortcuts for storage mounts.
mssparkutils.credentials.getConnectionStringOrCredsis unavailable in Fabric; for a Key Vault-backed secret, shownotebookutils.credentials.getSecret(keyVaultUrl, secretName).- The Dedicated SQL Pool-to-Fabric-Lakehouse path is source- and feature-driven. You MUST complete these phases in strict order:
- Gap Assessment (MANDATORY FIRST): Run compatibility assessment using
dedicated-pool-gap-assessment.mdto identify unsupported features, blockers, and migration risks BEFORE attempting any conversion.- User Approval (REQUIRED): After assessment, present
1:1,N:1, andN:Nstored-procedure-to-notebook mapping strategies and require the user to explicitly approve the complete mapping, target names, dependency grouping, and workspace placement. Wait for explicit approval before proceeding.- Manifest Creation (REQUIRED): Create
migration-manifest.jsonto track all objects, approved mappings, conversion status, and deployment checkpoints. Update manifest atomically after every phase.- Conversion: Generate artifacts only after approval is recorded in manifest. The
1:1,N:1, andN:Nmapping applies ONLY to stored procedures, NOT to views. Views are schema objects like tables and are deployed via Livy as SQL view definitions; they never convert to notebooks. Preserve every procedure as an independently traceable source decision under any approved strategy. Stored-procedure transformation logic must use readable Spark SQL%%sqlcells, not PySpark or the DataFrame API. Generated notebooks are outputs, not orchestration dependencies.- Treat the original production Dedicated Pool as read-only. Never create sample or synthetic data, schemas, tables, views, procedures, users, roles, or grants there, and never run its DDL, DML, or stored procedures. Source operations against the original are limited to metadata discovery and metadata-based validation. The Warehouse data path may run narrowly scoped setup DDL and CETAS only against the separately approved restored export copy after its identity is validated as different from the original; cleanup remains separately reviewed and user-run.
- Dedicated Pool data migration is out of scope only for the Lakehouse artifact-conversion path. That path must never export, stage, copy, upload, shortcut, transfer, or load source table rows, and must not run row-level or business-result equivalence queries. The Warehouse path has its own explicit post-DDL data consent gate and restored-source requirement.
- Print regular migration status. Announce every step before it starts, report each object or checkpoint as it completes or fails, emit a concise heartbeat at least every 30-60 seconds during long-running operations, and close every phase with completed/failed/skipped/pending counts. Include the phase, step, object, state, elapsed time, and next action. Status output must exclude credentials, tokens, connection strings, and sensitive data values.
- For large or complex stored procedures, prove conversion coverage with a deterministic source-block ledger and publish only from a hash-verified immutable deployment package. Every block must be converted, explicitly excluded with approval, or manually reviewed and approved; notebook syntax success alone is insufficient.
- Before generating live or partially specified Dedicated Pool-to-Lakehouse artifacts, follow the exact Live, Partially Specified, and Offline Artifact Contract. For a complete offline fixture, use only the Offline Lakehouse artifact fast path.
- An offline Dedicated Pool artifact request still requires this skill. For a complete large-procedure audit request, read
resources/dedicated-pool-large-procedure-audit.mdexactly once, then use one cwd-relative generator and the required generated verifier; do not load the standard conversion resources too. In generated JSON, store artifact-root-relative POSIX paths exactly as requested, never filesystem paths that include the output root. Keep separate constants for recorded relative paths and disk locations. Compute full deterministic block IDs before writing notebook markers or ledger mappings, and package attempt evidence forConvertedblocks only.- Keep Spark, Dedicated Pool-to-Lakehouse, and Dedicated Pool-to-Warehouse execution paths separate. If the target is not explicit, ask the user to choose it before loading path-specific resources. For a Fabric Warehouse target, explicitly state that the complete
DISTRIBUTIONandCLUSTERED COLUMNSTORE INDEXdeclarations are removed because Fabric manages distribution, storage, and indexing; a bare mention of either source clause is insufficient.- For Spark workspace migration plans, preserve the canonical phase labels from this skill: Phase 0 Spark Pools to Environments, Phase 1 databases/storage to Lakehouses or shortcuts, Phase 2 notebooks, and Phase 3 Spark Job Definitions. Do not renumber discovery as Phase 0.
- For Dedicated Pool feature-risk assessments and workspace item projections, follow the exact Feature-Risk Assessment and Workspace Projection Contract and load
resources/dedicated-pool-gap-assessment.md; the Phase 2 approval gate in Note 5 remains blocking.- For Dedicated Pool-to-Lakehouse publication and hashes, follow the exact Lakehouse Publication and Hash Contract.
Synapse Analytics → Microsoft Fabric Migration
Prerequisite Knowledge
These companion documents provide general Fabric REST patterns. Do NOT read them upfront — reference only when a specific phase requires a pattern not already covered in this skill's resource files:
- COMMON-CORE.md — General Fabric REST API patterns, authentication & token audiences, item discovery via JMESPath
- COMMON-CLI.md —
az rest/az loginCLI patterns, authentication recipes - SPARK-AUTHORING-CORE.md — Notebook/lakehouse creation (already covered in spark-item-migration.md and lake-database-migration.md)
- SQLDW-AUTHORING-CORE.md — Fabric Warehouse T-SQL; use it directly within the Dedicated Pool migration workflow, and delegate standalone Warehouse work to
sqldw-cli
Auth, API endpoints, and item payloads are fully documented in this skill's own files. The common docs above are fallback references only.
Resource Routing
Load only the selected path. Do not read all resources upfront.
| Request | Load |
| Full workspace migration | migration-orchestrator.md |
| Cross-workload planning, sizing, parity, troubleshooting, or handoff | migration-planning-reference.md |
| Complete offline Dedicated Pool to Lakehouse fixture | dedicated-pool-to-lakehouse.md fast path only |
| Live or incomplete Dedicated Pool to Lakehouse | dedicated-pool-to-lakehouse.md and dedicated-pool-conversion.md |
| Dedicated Pool risk report or target-design approval | dedicated-pool-gap-assessment.md |
| Large-procedure audit | dedicated-pool-large-procedure-audit.md only |
| Publishing, updating, or verifying generated Dedicated Pool notebooks | dedicated-pool-deployment.md |
| Dedicated Pool to Warehouse | The matching dw-* resource selected in the Warehouse route below |
| Spark Pool, Lake Database, external HMS, Notebook, or SJD phase | spark-pool-migration.md, lake-database-migration.md, external-hms-migration.md, or spark-item-migration.md |
| API/code/connectivity refactoring | utility-api-mapping.md, connector-refactoring.md, connectivity-migration.md, or code-patterns.md |
| Validation, security, reporting, or runtime compatibility | validation-testing.md, security-governance.md, migration-report.md, or library-compatibility.md |
Choose Migration Path
Identify the workload before loading implementation resources:
| Source workload | Target | Route |
| Spark Pools, notebooks, Spark Job Definitions, Lake Databases, external HMS, Linked Services | Fabric Spark, Lakehouse, Environment, Data Connections, Shortcuts | Use migration-planning-reference.md and migration-orchestrator.md |
| Dedicated SQL pool schema and code artifacts | Fabric Lakehouse and Spark SQL notebooks, without source rows | Use dedicated-pool-to-lakehouse.md and its phase resources |
| Dedicated SQL pool in a Synapse workspace or standalone dedicated SQL pool | Fabric Warehouse, with optional separately approved data migration | Use the Warehouse steps below and load only the matching dw-* resource |
| Mixed Synapse workspace | Multiple Fabric targets | Inventory workloads first, then run the selected Spark, Lakehouse-artifact, and Warehouse paths independently; preserve each path's dependencies, consent gates, and validation |
If the user requests a dedicated SQL pool migration without naming Lakehouse or Warehouse as the target, explain the two outcomes and ask which path to use before conversion or provisioning.
For a dedicated SQL pool to Fabric Warehouse migration, execute this route without loading the Spark or Lakehouse-artifact orchestrators:
- Resolve the Synapse workspace pool or standalone server/database, select metadata scope, and extract objects with dw-source-and-extraction.md.
- Convert DDL/DML and generate the compatibility assessment with dw-ddl-compatibility.md.
- Present the assessment and obtain explicit consent before provisioning or reusing a Fabric Warehouse.
- Resolve capacity, collation, Warehouse naming/collisions, deploy metadata, and ask separately whether to migrate table data using dw-security-validation.md.
- If data is approved, use a user-managed restored source copy and follow dw-data-migration.md for scoped CETAS export and COPY INTO ingestion.
- Deploy security at the approved point and validate metadata/data with dw-security-validation.md.
If data migration is declined, finish the metadata and security path, print its completion summary, and do not create CETAS resources.
Spark Migration Summary
For Spark workload planning, API audiences, target mapping, capacity sizing, feature parity, troubleshooting, and post-migration handoff, load migration-planning-reference.md. For execution, load only the phase resource selected by the Resource Routing table. Preserve the canonical phase order: Phase 0 Environments, Phase 1 Lakehouses/shortcuts, Phase 2 Notebooks, Phase 3 Spark Job Definitions, then validation.
Must / Prefer / Avoid
MUST DO
- Preserve stored-procedure input contracts — keep every supported source input externally overridable through the Fabric Notebook Activity parameter mapped in first-cell
%%configure; preserve a source default only asdefaultValue, never replace a parameter use with a literal or invent a preview default, and block automatic publication when a required input has no source default - Approve stored-procedure notebook cardinality after discovery — calculate projected workspace item demand, present
1:1,N:1, andN:Nchoices, and block conversion until the user provides and approves a complete mapping, target names, dependency grouping, and workspace placement; preserve per-procedure source decisions and source-block provenance under every strategy - Audit large-procedure conversion by source block — generate deterministic per-run ledger/verifier scripts, require 100% non-overlapping source-byte coverage and a deployable disposition for every block, retry only failed blocks within the declared limit, retain audit/logging behavior by default, and publish only the exact bytes in a hash-verified
ReadyForPublicationpackage - Use direct APIs for non-procedural phases — use SqlPackage/DMVs for discovery, Fabric REST for item management, and Fabric Livy statements for schema and Delta execution
- Choose the target route before loading resources — do not apply Spark phases or Lakehouse artifact-conversion rules to Warehouse migration, and do not apply Warehouse data-movement steps to the Lakehouse path
- Keep Warehouse SQL execution paths separate — use
sqlcmdonly for the external Synapse source; use the SQL Endpoint MCPexecute_queryoperation for Fabric Warehouse DDL,COPY INTO, security, and validation - Replace all
mssparkutilsimports withnotebookutils— see utility-api-mapping.md for the complete namespace table - Replace all Linked Services with Fabric Data Connections (for external databases/services) or OneLake Shortcuts (for ADLS Gen2 / Blob storage mounts) — see connectivity-migration.md
- Replace
spark.read.synapsesql()with Lakehouse shortcut reads or JDBC connections to the Fabric Warehouse SQL endpoint - Re-test all notebooks after migration against the target Fabric Runtime version — Spark minor version differences can surface deprecated API warnings
- Externalize all workspace/item IDs — never hardcode; use pipeline parameters or migration-planning-reference.md
- Replace pool-level library installs with Fabric Environments attached at the workspace or notebook level
PREFER
- Independent validation for mixed workspaces — complete and report Spark and dedicated SQL paths separately
- OneLake Shortcuts over full data copies — mount existing ADLS Gen2 containers as shortcuts rather than re-ingesting data during migration
- Fabric Starter Pool for dev/test migrations — eliminates pool warm-up wait time inherent in Synapse on-demand pools
- Lakehouse SQL Endpoint as a drop-in for Serverless SQL Pool reads — point existing consumers at the endpoint with minimal query changes
- Medallion architecture for migrated data — align with Bronze/Silver/Gold patterns (see
e2e-medallion-architectureskill) - Incremental migration — migrate and validate workload by workload rather than performing a big-bang cutover
- Parameterized notebooks to allow environment promotion (dev → test → prod) without code changes
AVOID
- Do not use target notebooks as migration orchestration dependencies — generated notebooks are required outputs and are published without execution
- Do not load all Spark and DW resources upfront — follow the Resource Routing table for the selected path
- Do not use
sqlcmdagainst the target Fabric Warehouse — invoke the concrete MCP tool name exposed by the registeredfabric-sqlendpointserver - Do not copy-paste PolyBase
CREATE EXTERNAL TABLEDDL into Fabric Warehouse — showCOPY INTOwith ahttps://onelake.dfs.fabric.microsoft.com/...source, or use Lakehouse for external data access - Do not assume Synapse Linked Service connection strings are reusable — credentials and endpoints must be reconfigured as Fabric Data Connections
- Do not install libraries in notebook cells (
%pip installat runtime) for production workloads — use Fabric Environments for reproducible, versioned library management - Do not use
wasb://orabfss://container@storageaccount.dfs.core.windows.net/paths as primary data paths — migrate data access to OneLakeabfss://workspace@onelake.dfs.fabric.microsoft.com/paths
Examples
See code-patterns.md for full before/after examples. Key quick references:
mssparkutils.env → notebookutils.runtime
# Synapse
workspace = mssparkutils.env.getWorkspaceName()
job_id = mssparkutils.env.getJobId()
# Fabric
context = notebookutils.runtime.context
workspace = context["currentWorkspaceName"]
job_id = context["activityId"]Linked Service credential → Key Vault secret
# Synapse
conn = mssparkutils.credentials.getConnectionStringOrCreds("MyLinkedService")
# Fabric
conn = notebookutils.credentials.getSecret("https://myvault.vault.azure.net/", "my-secret")Dedicated SQL Pool DDL → Fabric Warehouse DDL
-- Synapse (remove distribution hints)
CREATE TABLE dbo.Fact (...) WITH (DISTRIBUTION = HASH(id), CLUSTERED COLUMNSTORE INDEX);
-- Fabric Warehouse
CREATE TABLE dbo.Fact (...);For additional before/after examples, load code-patterns.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

