Skip to content
Data
Skill

/databricks-serverless-migration-api

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

From plugin
databricks-agent-skills
40738 skills4 commands3 hooks

Claude Code

$ npx -y skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api --agent claude-code

SKILL.md

databricks-serverless-migration-api.SKILL.md
name: databricks-serverless-migration-api
description: "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."
compatibility: Requires databricks CLI (>= v1.24.0) with the compute-migrations command group
metadata:
  version: "0.1.0"
parent: databricks-core

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](#jobs-managed-from-source).

See the [migration guide](https://docs.databricks.com/en/compute/serverless/migration#migrate-with-the-migration-agent) 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

1. Check the [prerequisites](#prerequisites) once per workspace. 2. Confirm the job and whether to set `auto_approve` or `run_validation` (see [Settings chosen at creation](#settings-chosen-at-creation)). 3. Start the migration with `create`, and record its migration ID and `request_id`. 4. [Track progress](#tracking-progress) until it reaches a review gate or a terminal state. 5. At each review gate, [review the working copy](#reviewing-a-working-copy), present your findings to the user, and approve or reject as the user decides. 6. After `MIGRATION_COMPLETE`, [verify the original job](#after-completion) and report the result and the backup folder.

For a list of jobs, use [Bulk migration](references/bulk-migration.md) to repeat this workflow and track each job's decisions.

Prerequisites

1. **CLI v1.24.0 or newer**: check `databricks --version` and `databricks compute-migrations --help`. The command group and the verbs below must be available. If a command is missing, upgrade using `databricks-core`. 2. **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"). 3. **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

1. **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. 2. **Backup and working copy.** The service saves a backup of the job and its workspace files (see [Backups](#backups)), then creates a working copy: a new job named `[Serverless Migration - <timestamp>] <job name>`, tagged `serverless_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. 3. **Gate 1, `TRANSLATION_READY`.** Skipped when `auto_approve=true`. Otherwise, review the working copy. Approve to continue, or reject with a reason to request changes. 4. **Validation run** (only with `run_validation`). Databricks runs the working-copy job once. The outcome is recorded in `validation_report`. A failed run does not stop the migration: it moves to `MIGRATION_REVIEW` with `passed: false`. 5. **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. 6. **Complete.** Verify the original job (see [After completion](#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](#cancellation)).

Settings Chosen at Creation

`auto_approve` and `run_validation` are fixed when the migration is created and cannot be changed. Both default to `false`. Set either one only when the user asks for it.

| Field | Effect | Risk | |-------|--------|------| | `auto_approve` | Skips gate 1 (`TRANSLATION_READY`). Gate 2 still waits for a decision. | With `run_validation`, the working c

Read more
@databricks
Ships withdatabricks-agent-skills

Build on Databricks with AI coding agents such as Claude Code, Cursor, Codex, GitHub Copilot, and many others. This repository provides the skills and agent plugins for Databricks AI Tools.

Stars on GitHub

Momentum

stars in total
407
Star history of databricks/databricks-agent-skills on GitHub, a chart by star-history.com

Other skills on databricks-agent-skills.

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem013d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog2w41k
@posthog@posthogInstall Skill

Questions about databricks-serverless-migration-api.

Which coding agents can use databricks-serverless-migration-api?
databricks-serverless-migration-api installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.