<?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: Question regarding Databricks Apps deployment in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174929#M56948</link>
    <description>&lt;P&gt;When setting up Databricks Apps, common challenges center on configuration, Unity Catalog (UC) connectivity, and authentication. Ensure your app.yaml correctly specifies the startup command and binds to the container port, and leverage the Databricks SDK (databricks-sdk) with a serverless SQL Warehouse so your app can seamlessly access UC datasets using the platform's automatically injected OAuth environment variables. If you share your specific framework, objective, or error details, the community can provide tailored code snippets and debugging guidance.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2026 11:32:49 GMT</pubDate>
    <dc:creator>john21cornell</dc:creator>
    <dc:date>2026-10-29T11:32:49Z</dc:date>
    <item>
      <title>Question regarding Databricks Apps deployment</title>
      <link>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174822#M56914</link>
      <description>&lt;P&gt;Hello Databricks Community,&lt;/P&gt;&lt;P&gt;I am currently working on setting up a Databricks App and ran into a few questions.&lt;/P&gt;&lt;P&gt;Here are the details of what I am working with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Target Framework: [e.g., Streamlit / Dash]&lt;/LI&gt;&lt;LI&gt;Goal: [Briefly describe what you are trying to achieve]&lt;/LI&gt;&lt;LI&gt;Current Challenge: [Briefly describe the blocker, e.g., authentication, Unity Catalog connection, etc.]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone tackled a similar setup?&lt;/P&gt;&lt;P&gt;Any pointers, code snippets, or best practices would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2026 06:04:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174822#M56914</guid>
      <dc:creator>Khasim_1</dc:creator>
      <dc:date>2026-10-28T06:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding Databricks Apps deployment</title>
      <link>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174825#M56915</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/249065"&gt;@Khasim_1&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I was developing a &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Flask-based Databricks App&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, which integrated Databricks Model Serving, a custom tool-calling agent, and Unity Catalog system tables, I found a few key areas worth considering during setup.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Application startup:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;verify&amp;nbsp;&lt;SPAN&gt;app.yaml dependencies, startup command and port configuration.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Authentication and permissions:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Check which identity the app uses and whether it has access to the required Databricks resources.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Unity Catalog access:&lt;/STRONG&gt; Confirm the necessary catalog/schema/table privileges.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Resource dependencies:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Ensure any SQL warehouses or serving endpoints are correctly configured and accessible.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Troubleshooting:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Deployment/runtime logs to distinguish startup errors from resource-access failures.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;In my implementation, the App successfully queried job, billing and query metrics and integrated them with an AI agent, so this architecture is workable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you share your framework (Streamlit, Dash or Flask), what you're trying to build, and the specific error or blocker? That would help to contribute further.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2026 07:13:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174825#M56915</guid>
      <dc:creator>data_pulse</dc:creator>
      <dc:date>2026-10-28T07:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding Databricks Apps deployment</title>
      <link>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174929#M56948</link>
      <description>&lt;P&gt;When setting up Databricks Apps, common challenges center on configuration, Unity Catalog (UC) connectivity, and authentication. Ensure your app.yaml correctly specifies the startup command and binds to the container port, and leverage the Databricks SDK (databricks-sdk) with a serverless SQL Warehouse so your app can seamlessly access UC datasets using the platform's automatically injected OAuth environment variables. If you share your specific framework, objective, or error details, the community can provide tailored code snippets and debugging guidance.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2026 11:32:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/174929#M56948</guid>
      <dc:creator>john21cornell</dc:creator>
      <dc:date>2026-10-29T11:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding Databricks Apps deployment</title>
      <link>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/175266#M56978</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/249065"&gt;@Khasim_1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It looks like the template placeholders made it into the post, so I'm not sure exactly where you're stuck. In case it helps, here's a minimal Streamlit app that reads a Unity Catalog table through a SQL warehouse. That covers the three things people usually get stuck on: app.yaml, authentication and UC permissions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Files&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;my-app/
  app.py
  app.yaml
  requirements.txt&lt;/PRE&gt;&lt;P&gt;app.yaml (the warehouse ID comes from an app resource with the key sql-warehouse):&lt;/P&gt;&lt;PRE&gt;command: ['streamlit', 'run', 'app.py']
env:
  - name: 'DATABRICKS_WAREHOUSE_ID'
    valueFrom: 'sql-warehouse'
  - name: 'STREAMLIT_GATHER_USAGE_STATS'
    value: 'false'&lt;/PRE&gt;&lt;P&gt;requirements.txt:&lt;/P&gt;&lt;PRE&gt;databricks-sdk
databricks-sql-connector
pandas&lt;/PRE&gt;&lt;P&gt;app.py:&lt;/P&gt;&lt;PRE&gt;import os
import streamlit as st
from databricks import sql
from databricks.sdk.core import Config

cfg = Config()  # picks up the app's own service principal credentials

@st.cache_resource
def get_connection():
    return sql.connect(
        server_hostname=cfg.host,
        http_path=f"/sql/1.0/warehouses/{os.getenv('DATABRICKS_WAREHOUSE_ID')}",
        credentials_provider=lambda: cfg.authenticate,
    )

def run_query(query: str):
    with get_connection().cursor() as cursor:
        cursor.execute(query)
        return cursor.fetchall_arrow().to_pandas()

st.title("Quick table viewer")
df = run_query("SELECT * FROM samples.nyctaxi.trips LIMIT 100")
st.dataframe(df)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;2. Add the warehouse as a resource&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When you create or edit the app, add a SQL warehouse resource, give it the key sql-warehouse and the Can use permission. That's what fills in DATABRICKS_WAREHOUSE_ID, and it gives the app's service principal access to the warehouse.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Grant Unity Catalog access to the app's service principal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;By default the app queries as its own service principal, not as you. That's the most common reason an app works in testing and then hits "permission denied". You can find the principal on the app's Authorization tab. Use its application ID in the grants:&lt;/P&gt;&lt;PRE&gt;GRANT USE CATALOG ON CATALOG main TO `&amp;lt;app-sp-application-id&amp;gt;`;
GRANT USE SCHEMA  ON SCHEMA  main.sales TO `&amp;lt;app-sp-application-id&amp;gt;`;
GRANT SELECT      ON TABLE   main.sales.orders TO `&amp;lt;app-sp-application-id&amp;gt;`;&lt;/PRE&gt;&lt;P&gt;If you need each user to see only what they're allowed to see, look at user authorization (on-behalf-of-user) in the Apps docs instead.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Deploy&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;databricks apps create my-app
databricks sync ./my-app /Workspace/Users/&amp;lt;you&amp;gt;/my-app
databricks apps deploy my-app --source-code-path /Workspace/Users/&amp;lt;you&amp;gt;/my-app&lt;/PRE&gt;&lt;P&gt;If it doesn't start, check the Logs tab on the app page first. A missing package in requirements.txt or a wrong command in app.yaml shows up there right away.&lt;/P&gt;&lt;P&gt;If you share your framework, what you're building and the actual error, I'm happy to look at the specific blocker.&lt;/P&gt;&lt;P&gt;Docs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;app.yaml: &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/app-runtime" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/databricks-apps/app-runtime&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Databricks Apps: &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/databricks-apps/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 01 Nov 2026 11:49:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/question-regarding-databricks-apps-deployment/m-p/175266#M56978</guid>
      <dc:creator>Isaac_18</dc:creator>
      <dc:date>2026-11-01T11:49:40Z</dc:date>
    </item>
  </channel>
</rss>

