<?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 Databricks Apps - Deployment process - Need help !! in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-apps-deployment-process-need-help/m-p/167637#M55746</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Do we have any guidelines or a CI/CD approach for deploying a Databricks app from one environment (e.g., DEV) to PROD?We are currently facing the following challenge:We created a Databricks app in the DEV environment through the UI. At runtime, the app creates a service principal, to which we granted the required permissions to access Databricks tables. After deploying the code, everything works as expected in DEV.How can we fully automate the deployment process from DEV to PROD? In particular, how can we automate assigning the required permissions to the service principal that is created at runtime in the target environment?Any guidance or examples would be appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sat, 05 Sep 2026 05:38:57 GMT</pubDate>
    <dc:creator>Sanjeeb2024</dc:creator>
    <dc:date>2026-09-05T05:38:57Z</dc:date>
    <item>
      <title>Databricks Apps - Deployment process - Need help !!</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-apps-deployment-process-need-help/m-p/167637#M55746</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Do we have any guidelines or a CI/CD approach for deploying a Databricks app from one environment (e.g., DEV) to PROD?We are currently facing the following challenge:We created a Databricks app in the DEV environment through the UI. At runtime, the app creates a service principal, to which we granted the required permissions to access Databricks tables. After deploying the code, everything works as expected in DEV.How can we fully automate the deployment process from DEV to PROD? In particular, how can we automate assigning the required permissions to the service principal that is created at runtime in the target environment?Any guidance or examples would be appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2026 05:38:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-apps-deployment-process-need-help/m-p/167637#M55746</guid>
      <dc:creator>Sanjeeb2024</dc:creator>
      <dc:date>2026-09-05T05:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps - Deployment process - Need help !!</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-apps-deployment-process-need-help/m-p/167639#M55747</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/129689"&gt;@Sanjeeb2024&lt;/a&gt;&amp;nbsp;DABs is the right approach for managing and promoting Databricks Apps across environments (DEV to PROD). When you deploy an app via DABs, Databricks automatically provisions a dedicated service principal for that app instance. This service principal persists across all subsequent code updates and is deleted only when the app itself is deleted. Each target environment maintains its own isolated app instance with its own dedicated service principal, keeping DEV and PROD credentials and identities completely decoupled. More details &lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/apps-tutorial/" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To automate access in the target environment, you can declare &lt;STRONG&gt;grants&lt;/STRONG&gt; resource directly in the bundle YAML rather than configuring permissions manually in Unity Catalog. DABs exposes the runtime service principal using bundle substitution via &lt;STRONG&gt;${resources.apps.&amp;lt;app-name&amp;gt;.service_principal_client_id}&lt;/STRONG&gt;, allowing you to bind permissions directly to the generated identity during the deploy phase&lt;/P&gt;&lt;LI-CODE lang="python"&gt;bundle:
  name: files_db_app

variables:
  catalog:
    default: dev_catalog

targets:
  dev:
    default: true
    workspace:
      host: https://dev
    variables:
      catalog: dev_catalog

  prod:
    workspace:
      host: https://prod
    variables:
      catalog: prod_catalog

resources:
  apps:
    file_app:
      name: 'file-app-${bundle.target}'
  grants:
    app_table_access:
      principal: '${resources.apps.file_app.service_principal_client_id}'
      privileges: [SELECT, MODIFY]
      catalog_name: ${var.catalog}&lt;/LI-CODE&gt;&lt;P&gt;By parameterizing the catalogs and schemas using bundle variables like ${var.catalog} and ${bundle.target}, permissions are resolved dynamically per stage. Running &lt;STRONG&gt;databricks bundle deploy -t prod&lt;/STRONG&gt; in the CI/CD pipeline deploys the updated application code, provisions or updates the PROD-specific service principal and applies all required table privileges in a single, declarative run. More details &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/cicd-github-actions/" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2026 07:16:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-apps-deployment-process-need-help/m-p/167639#M55747</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-09-05T07:16:38Z</dc:date>
    </item>
  </channel>
</rss>

