databricks-serverless-migration-api
FreeNo executable scriptsNot checkedMigrate Databricks jobs to serverless through the Compute Migrations API and CLI, then track, review, and approve each migration. Use for automated job…
by databricks★ 421 GitHub starsAbout this skill
Serverless Migration API
FIRST: Use the parent databricks-core skill for CLI installation, authentication, and profile selection.
Use the Compute Migrations API through the Databricks CLI to migrate a job to serverless. The service analyzes the job, backs it up, builds a serverless working copy, and optionally runs it in the background. Your part is to track the migration, review the working copy, present the changes to the user, and carry out their decision. Applying the changes to the original job requires the user's explicit approval.
When to Use This Skill
Use it when the user asks you to:
- migrate one job or many jobs to serverless,
- write a script that starts and tracks migrations,
- check on, approve, reject, or cancel migrations already in progress, or
- find the backup a migration took of a job.
Use databricks-serverless-migration for direct code edits, notebooks, pipelines, JAR tasks, or a job this service cannot migrate. For job definitions maintained in source control, read Jobs managed from source.
See the migration guide for supported workloads and limits. A successful create starts the migration; it does not establish that the workload is compatible. Incompatibilities can be discovered during planning or working-copy creation.
Migrate One Job
- Check the prerequisites once per workspace.
- Confirm the job and whether to set
auto_approveorrun_validation(see Settings chosen at creation). - Start the migration with
create, and record its migration ID andrequest_id. - Track progress until it reaches a review gate or a terminal state.
- At each review gate, review the working copy, present your findings to the user, and approve or reject as the user decides.
- After
MIGRATION_COMPLETE, verify the original job and report the result and the backup folder.
For a list of jobs, use Bulk migration to repeat this workflow and track each job's decisions.
Prerequisites
- CLI v1.24.0 or newer: check
databricks --versionanddatabricks compute-migrations --help. The command group and the verbs below must be available. If a command is missing, upgrade usingdatabricks-core. - Compute Agent preview enabled in the workspace. A workspace admin enables it under Previews. Without it, every call fails with
PERMISSION_DENIED("Migration APIs are not enabled for this workspace"). - CAN_MANAGE on each job you migrate.
The CLI help is generated from the API and is authoritative for command names, arguments, and flags. Run databricks compute-migrations <command> --help before first use of each command. Pass request bodies with --json and read responses with -o json.
Lifecycle
Prepare working copy
→ TRANSLATION_READY (skipped when auto_approve=true)
→ Optional validation run (run_validation=true)
→ MIGRATION_REVIEW (execution approval required)
→ Apply changes → MIGRATION_COMPLETE
- Planning. The service reads the job, its notebooks and files, and its cluster configuration, and works out the serverless changes: compute, dependencies, Spark configs, and code changes. The working copy is the first thing you review.
- Backup and working copy. The service saves a backup of the job and its workspace files (see Backups), then creates a working copy: a new job named
[Serverless Migration - <timestamp>] <job name>, taggedserverless_migration_source_job_id=<original job id>, running copies of the job's notebooks and files. The original job is not modified until you approve execution. - Gate 1,
TRANSLATION_READY. Skipped whenauto_approve=true. Otherwise, review the working copy. Approve to continue, or reject with a reason to request changes. - Validation run (only with
run_validation). Databricks runs the working-copy job once. The outcome is recorded invalidation_report. A failed run does not stop the migration: it moves toMIGRATION_REVIEWwithpassed: false. - Gate 2,
MIGRATION_REVIEW. Final approval to update the original job. Approving execution starts applying the working copy's settings and file contents to the original job, keeping its job ID, schedule, and permissions. - Complete. Verify the original job (see After completion).
Use either rejection command to request changes, with a specific rejection_reason. The same migration returns to planning and revises its working copy. Read migration_report again and review the current copy before approving it. Revisions are limited, and repeated rejections eventually fail the migration. When the user wants to stop the migration, use cancel-migration (see Cancellation).
Settings Chos
Install databricks-serverless-migration-api in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the databricks-serverless-migration-api skill do?
Migrate Databricks jobs to serverless through the Compute Migrations API and CLI, then track, review, and approve each migration. Use for automated job migrations managed by this service, scripts that start and track migrations, requests to inspect, revise, approve, or cancel migrations, and finding migration backups. For direct code or notebook edits and compatibility analysis, use databricks-serverless-migration.
How do I install the databricks-serverless-migration-api skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the databricks-serverless-migration-api skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic