Databricks Dabs

databricks/databricks-agent-skills/plugins/databricks/copilot/skills/databricks-dabs

作者 databrickse3df77b3f0eb5d70392eb35c6761ca0f2929a4f6無授權條款345 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫今天更新

Create, configure, validate, deploy, run, and manage Declarative Automation Bundles (DABs, formerly Databricks Asset Bundles). Use when working with Databricks resources via DABs including dashboards, jobs, pipelines, alerts, volumes, and apps.

僅含說明DevOps & Cloud
AI 產生的概覽

指導建立、設定、驗證、部署與管理 Databricks 宣告式自動化套件組合(DABs)。

功能
此技能提供操作 Databricks 宣告式自動化套件組合(DABs)的指示與參考資料。內容涵蓋套件組合結構與 databricks.yml 設定、資源定義、變數、多環境目標、Spark 宣告式管線設定、SQL 警示結構、部署與執行流程,以及資源權限。它也規範部署前須執行的驗證與 App 命名完成檢查。
適用情境
適用於建立或設定套件組合專案與資源、設定開發/正式環境目標、部署或執行套件組合資源、管理權限,或排解套件組合驗證與部署錯誤。也適用於儀表板、作業、管線、警示、磁碟區與應用程式等特定資源類型。
執行需求
需要 Databricks CLI(App 命名預設值涉及 0.270.0 或更新版本),以及可存取的 Databricks 工作區,用於驗證、部署與執行資源。此技能未附指令碼,僅包含指示、參考文件與影像資源。

Declarative Automation Bundles (DABs)

Use this skill for any bundle-related request including creating, configuring, validating, deploying, running, and managing Databricks resources through DABs.

Reference Documentation

The following reference files provide detailed guidance for specific bundle tasks:

  • Bundle Structure [blocked] - Bundle structure, databricks.yml configuration, resource definitions, path resolution, variables, and multi-environment targets
  • SDP Pipelines [blocked] - Spark Declarative Pipeline configurations for DABs
  • SQL Alerts [blocked] - SQL Alert schemas and configuration (critical - API differs from other resources)
  • Deploy and Run [blocked] - Validation, deployment, running resources, monitoring logs, and troubleshooting common issues
  • Resource Permissions [blocked] - Permission levels and access control for bundle resources, per-resource-type levels, grants vs permissions

When to Use This Skill

Load this skill for any request involving:

  • Creating new bundle projects or resources
  • Configuring databricks.yml or resource YAML files
  • Setting up multi-environment deployments (dev/prod targets)
  • Deploying or running bundle resources
  • Managing permissions for bundle resources
  • Troubleshooting bundle validation or deployment errors
  • Working with specific resource types (dashboards, jobs, pipelines, alerts, volumes, apps)

General Guidelines

  1. Always validate after configuration changes - Use bundle validate --strict --target <target> after any change
  2. Use reference documentation - Consult the appropriate reference file for detailed patterns and examples
  3. Follow naming conventions - Resource files should use <name>.<resource_type>.yml format
  4. Path resolution is critical - Paths differ based on file location (see Bundle Structure reference)
  5. Preserve existing structure - Keep user comments and structure when editing YAML files
  6. Use variables - Parameterize catalog, schema, and warehouse for multi-environment support
  7. Namespace App names - App names are workspace-global and limited to 30 characters. With Databricks CLI 0.270.0 or later, shared-development defaults should include the app and ${workspace.current_user.domain_friendly_name}; override production with a stable name, and persist an explicit local value when the default is invalid, collides, or must distinguish multiple non-production targets in one workspace. On older CLI versions, require an explicit app_name value instead

Required App Completion Contract

Before validating any bundle that creates or changes an App, re-read the final bundle YAML and confirm all of the following structural requirements:

  • Each App resource uses a dedicated name variable, such as name: ${var.app_name}, while preserving an existing equivalent variable when present.
  • For Databricks CLI 0.270.0 or later, each App name variable defaults to a recognizable App prefix plus ${workspace.current_user.domain_friendly_name} for development, and the production target overrides it with a stable name. On older CLI versions, App name variables have no default and each developer must provide values.
  • No development App name uses ${workspace.current_user.short_name}, a bare ${bundle.target}, or a hardcoded value.

Only after this check, run databricks bundle validate --strict --target <target> --output json and inspect each resolved resources.apps.<key>.name. Each name must contain only lowercase letters, digits, and hyphens and be at most 30 characters. If a resolved name is invalid, collides after normalization, or multiple non-production targets share a workspace, persist a shorter, distinct value in the uncommitted .databricks/bundle/<target>/variable-overrides.json file and validate again. Successful validation alone does not satisfy this contract because validation does not catch every invalid or non-namespaced App name.

Documentation

來源與署名

來源:databricks/databricks-agent-skills位於plugins/databricks/copilot/skills/databricks-dabs提交e3df77b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架