<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Genie Higher Environment deployment using DAB in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169635#M2095</link>
    <description>&lt;P&gt;Thanks for sharing this, the genie_spaces approach makes the Dev to QA to Prod flow much clearer. Using separate targets and variables for each environment is a really practical setup. The service principal recommendation for production is a useful detail too.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2026 23:55:08 GMT</pubDate>
    <dc:creator>stephen4</dc:creator>
    <dc:date>2026-09-23T23:55:08Z</dc:date>
    <item>
      <title>Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169579#M2091</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have successfully developed and tested the Genie in the development workspace environment. I now need to deploy the same Genie to higher environments, such as QA and Production, using the CI/CD process through DAB.&lt;/P&gt;&lt;P&gt;Could someone please share any official documentation or relevant guidance on how to perform this deployment?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Sep 2026 13:19:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169579#M2091</guid>
      <dc:creator>karuppusamy</dc:creator>
      <dc:date>2026-09-23T13:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169594#M2092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/190050"&gt;@karuppusamy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Databricks fully supports deploying Genie Agents (formerly Genie Spaces) as code using Declarative Automation Bundles (DABs), which makes CI/CD promotion from dev to QA to production straightforward&lt;/P&gt;
&lt;P&gt;As of Databricks CLI version 1.3.0, you can define a Genie Agent as a&amp;nbsp;genie_spaces&amp;nbsp;resource in your&amp;nbsp;databricks.yml. A key requirement is that &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/resources" target="_blank"&gt;Genie Agent bundles&lt;/A&gt;&amp;nbsp;must use the direct deployment engine&amp;nbsp;(engine: direct).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a minimal example.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;# databricks.yml
bundle:
  name: my-genie-agent
  engine: direct  # required for genie_spaces

resources:
  genie_spaces:
    my_genie:
      title: 'Sales Analytics Agent'
      description: 'Ask questions about sales data'
      warehouse_id: ${var.warehouse_id}
      file_path: ./my_genie.geniespace.json
      permissions:
        - level: CAN_RUN
          group_name: users&lt;/LI-CODE&gt;
&lt;P&gt;The&amp;nbsp;file_path&amp;nbsp;points to a JSON file that holds the full serialized definition of your Genie space, including data sources, column configs, text instructions, and sample questions. You can export this from your existing dev Genie and check it into source control alongside your bundle config.&lt;/P&gt;
&lt;P&gt;To deploy the same Genie to QA and Production, define separate targets in your bundle and use variables to swap environment-specific values like&amp;nbsp;warehouse_id&amp;nbsp;and catalog names. Refer &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/deployment-modes" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;variables:
  warehouse_id:
    description: SQL warehouse for the Genie Agent
  catalog:
    description: Unity Catalog to query

targets:
  dev:
    mode: development
    default: true
    workspace:
      host: https://dev-workspace.databricks.com
    variables:
      warehouse_id: abc123
      catalog: dev_catalog

  qa:
    workspace:
      host: https://qa-workspace.databricks.com
    variables:
      warehouse_id: def456
      catalog: qa_catalog

  prod:
    mode: production
    workspace:
      host: https://prod-workspace.databricks.com
      root_path: /Workspace/Production/.bundle/${bundle.name}
    run_as:
      service_principal_name: '&amp;lt;your-sp-application-id&amp;gt;'
    variables:
      warehouse_id: ghi789
      catalog: prod_catalog&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Then deploy to each environment in your CI/CD pipeline:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;databricks bundle validate --target qa
databricks bundle deploy --target qa

databricks bundle validate --target prod
databricks bundle deploy --target prod&lt;/LI-CODE&gt;
&lt;P&gt;I would recommend using&amp;nbsp;a service principal for production.&amp;nbsp;Setting&amp;nbsp;run_as&amp;nbsp;to a service principal ensures deployments and runs are not tied to an individual user account. Databricks recommends this for any staging or production target.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you set&amp;nbsp;mode: production, the CLI validates that Git branches match, artifact paths are not user-specific, and permissions are explicitly declared. You can override the Git check with&amp;nbsp;--force&amp;nbsp;if needed.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps you get your Genie promoted smoothly. If you run into anything specific during the deployment, feel free to share the error and we can dig in further.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2026 15:21:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169594#M2092</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-09-23T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169604#M2094</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Ashwin_DSA!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2026 16:24:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169604#M2094</guid>
      <dc:creator>karuppusamy</dc:creator>
      <dc:date>2026-09-23T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169635#M2095</link>
      <description>&lt;P&gt;Thanks for sharing this, the genie_spaces approach makes the Dev to QA to Prod flow much clearer. Using separate targets and variables for each environment is a really practical setup. The service principal recommendation for production is a useful detail too.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2026 23:55:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169635#M2095</guid>
      <dc:creator>stephen4</dc:creator>
      <dc:date>2026-09-23T23:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169808#M2103</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi Aswin and Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried deploying the Genie to the higher environments using Databricks DAB and Azure DevOps, but the deployment is not working as expected. I am facing the issue shown below.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karuppusamy_0-1790330857137.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/31495i329BB73C3C7864D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karuppusamy_0-1790330857137.png" alt="karuppusamy_0-1790330857137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Additionally, within Databricks, I do not see any option to download or export Genie Agents. For notebooks, I can easily download, export, and manually import them into another workspace, but I cannot find a similar option for Genie Agents.&lt;/P&gt;&lt;P&gt;I am able to deploy notebooks and AI/BI Dashboards successfully; however, the Genie deployment is not working as expected.&lt;/P&gt;&lt;P&gt;I truly appreciate and respect your response and your willingness to help answer my question. However, after testing the suggested approach, I am sorry to say that it does not seem to work as expected in my case.&lt;/P&gt;&lt;P&gt;Could someone from the Databricks team who has successfully deployed Genie using DAB and Azure DevOps please help by sharing the official documentation or recommended deployment approach? This would help establish a standard process that all Databricks users can follow for deploying Genie across their projects.&lt;/P&gt;&lt;P&gt;Thank you for your support and guidance.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Sep 2026 10:14:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169808#M2103</guid>
      <dc:creator>karuppusamy</dc:creator>
      <dc:date>2026-09-25T10:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169835#M2108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/190050"&gt;@karuppusamy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for sharing the error snapshot.&amp;nbsp;What you are seeing is expected behaviour rather than a bundle misconfiguration. Genie Agents are an &lt;A href="https://docs.databricks.com/aws/en/repos/supported-artifact-types" target="_blank"&gt;unsupported asset type for commits in Databricks Git folders&lt;/A&gt;, so the workspace Git integration cannot sync the .geniespace.json. That is why your notebooks and dashboards go through fine, but the Genie does not.&lt;/P&gt;
&lt;P&gt;The fix is to keep the Genie out of the workspace Git folder sync path and let the &lt;A href="https://docs.databricks.com/aws/en/dev-tools/cli/bundle-commands" target="_blank"&gt;Databricks CLI&lt;/A&gt; deploy it from your Azure DevOps checkout through the API.&lt;/P&gt;
&lt;P&gt;There is no UI download for a Genie Agent, so generate it with the &lt;A href="https://docs.databricks.com/aws/en/dev-tools/cli/bundle-commands" target="_blank"&gt;bundle generate genie-space&lt;/A&gt; command.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;databricks bundle generate genie-space \
  --existing-id &amp;lt;your-genie-space-id&amp;gt; \
  --key inventory_genie&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This writes the resource YAML and a src/*.geniespace.json into your bundle. If you prefer the REST route instead, call the &lt;A href="https://docs.databricks.com/api/genie" target="_blank"&gt;Genie Space API&lt;/A&gt; with GET /api/2.0/genie/spaces/{space_id}?include_serialized_space=true and save the serialized_space payload.&lt;/P&gt;
&lt;P&gt;Keep that .geniespace.json in your Azure DevOps repo alongside databricks.yml, not inside a Databricks workspace Git folder. Set engine: direct in the bundle, which the genie_spaces &lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/resources" target="_blank"&gt;resource&lt;/A&gt; requires.&lt;/P&gt;
&lt;P&gt;Deploy from the pipeline with the CLI, which reads the file from the agent filesystem and pushes it via the API. This slots straight into the standard &lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/ci-cd" target="_blank"&gt;Azure DevOps CI/CD flow for bundles&lt;/A&gt;.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;databricks bundle validate --target $(BUNDLE_TARGET)
databricks bundle deploy --target $(BUNDLE_TARGET)&lt;/LI-CODE&gt;
&lt;P&gt;A quick checklist before you retry.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Databricks CLI 1.3.0 or later, latest preferred, which you can confirm with databricks --version.&lt;/LI&gt;
&lt;LI&gt;engine: direct set in databricks.yml, per the direct deployment engine &lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/deployment-modes" target="_blank"&gt;docs&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;The .geniespace.json lives in the external repo and is never synced through a Databricks Git folder.&lt;/LI&gt;
&lt;LI&gt;The warehouse id and any catalog or schema the Genie references exist in the target workspace.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Once you move to CLI-driven deploys from the pipeline instead of Git folder sync, the Genie will land in QA and prod cleanly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2026 13:57:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169835#M2108</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-09-25T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Higher Environment deployment using DAB</title>
      <link>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169872#M2110</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/190050"&gt;@karuppusamy&lt;/a&gt;&amp;nbsp;one practical addition to &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;CLI steps: I'd explicitly se&lt;EM&gt;parent_path&lt;/EM&gt; on the &lt;EM&gt;genie_spaces&lt;/EM&gt; resource to an existing workspace folder outside the Git folder, writable by your deployment identity.&lt;/P&gt;&lt;P&gt;These two paths serve different purposes: &lt;EM&gt;file_path&lt;/EM&gt; points to the exported JSON definition in your Azure DevOps checkout; &lt;EM&gt;parent_path&lt;/EM&gt; controls where the deployed Genie Agent is registered. Both are documented in the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/resources#genie_space" target="_blank" rel="noopener"&gt;Genie bundle resource reference&lt;/A&gt;⁠.&lt;/P&gt;&lt;P&gt;Keep the YAML and JSON definition in source control, but keep the native Genie Agent out of the workspace Git folder. The &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/repos/supported-artifact-types#unsupported-asset-types" target="_blank" rel="noopener"&gt;Git-folder restriction⁠&lt;/A&gt;&amp;nbsp;concerns the native agent asset; exporting its definition and deploying it through the CLI is a separate operation.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2026 22:08:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/genie-higher-environment-deployment-using-dab/m-p/169872#M2110</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-09-25T22:08:47Z</dc:date>
    </item>
  </channel>
</rss>

