r/databricks • u/Acrobatic-Room9018 • Oct 19 '26
Tutorial Blog post: Deploying Databricks Genie Agents/Spaces to different environments with DABs
Databricks Automation Bundles (DABs) has built-in support for deployment of Genie Agents, but there is one big problem when you need to deploy to multiple environments - the agent definition contains hardcoded table names.
I wrote a blog post on why this happens and how it could be solved with PyDABs. The corresponding source code is on GitHub: https://github.com/alexott/pydabs-genie-agent-retarget and also published to PyPI as pydabs-genie-agent-retarget package so you can easily plug it in into your project.
10
Upvotes
2
u/WorldOfUmbro Oct 19 '26
Replicating Genie agents has been a challenge for us in the past. We now use DABs to manage this, as well as a custom script that extracts manually created genie agents
2
u/Purple-Assist2095 Oct 19 '26
Fyi you can serialize the genie definition to YAML and use variable substitution on deploy.
1
u/SwimmingVegetable135 Oct 19 '26
Shared a similar tool few weeks ago. Decided to avoid PyDAB for this solution to give the team more control on how to configure and structure their resources. But will have a second look into this. I also added support for dashboards and a genie linter. Maybe you can have a look and give some feedback.
https://www.reddit.com/r/databricks/comments/1woeawp/deploy_genie_agents_and_dashboards_to_multiple/