| name | dsync-migration |
| description | SQL Server to Azure Cosmos DB migration and sync using dsync. Guides agents through
generating a dsync connector config, executing the migration, and validating results.
Use when migrating data from SQL Server to Cosmos DB as Step 5 of a database
modernization workflow, after assessment, schema conversion, Bicep infra, and deployment.
|
| license | MIT |
| metadata | {"author":"Adiom Data","version":"1.0.0"} |
dsync Migration: SQL Server to Cosmos DB
Step-by-step procedural skill for migrating data from SQL Server to Azure Cosmos DB using dsync. This skill is designed for Step 5 of a database modernization workflow.
Trigger Conditions
Activate this skill when ANY of the following are true:
- The user mentions "dsync", "data migration", or "SQL to Cosmos" in a migration context
- The project contains
docs/cosmos-db-migration-assessment.md or docs/schema_and_access_patterns_conversion_plan.md
- The user asks to migrate, sync, or replicate data from SQL Server to Cosmos DB
- The user asks to generate a dsync config or run dsync
Required Inputs
Before proceeding, the agent MUST verify all of the following exist:
- Migration assessment --
docs/cosmos-db-migration-assessment.md
Contains: source database analysis, table inventory, data types, constraints
- Access patterns --
docs/access-patterns.md
Contains: query patterns, read/write ratios, hot paths
- Volumetrics --
docs/volumetrics.md
Contains: row counts per table, data sizes, growth projections
- Schema conversion plan --
docs/schema_and_access_patterns_conversion_plan.md
Contains: SQL-to-NoSQL mapping decisions, embedding vs referencing, partition key choices
- SQL Server connection -- a live connection string or host/port/user/password/database
If any input is missing, STOP and tell the user which inputs are needed before this step can proceed.
Procedure
Follow the rules in numbered order. Each rule file contains the detailed procedure.
Phase 1: Prerequisites (Rules 01-02)
Phase 2: Configuration (Rules 03-05)
Phase 3: Execution (Rules 06-07)
Phase 4: Validation (Rules 08-10)
Completion Criteria
The migration is considered successful when ALL of the following are true:
- dsync exited with status 0
- Row counts match between SQL Server and Cosmos DB for every table/container
- Sample records match between source and target
- Access pattern queries return expected results from Cosmos DB