<?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: Add resource to app space in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175477#M57007</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/269143"&gt;@JanW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following up on the answer above from &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/22314"&gt;@saurabh18cs&lt;/a&gt;&amp;nbsp; and the results of a quick API test. Thank you for setting out what you tried and how you compared it with an app outside a space. That made the case easy to reproduce&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Short answer:&lt;/STRONG&gt; You are not missing a setting. The answer above is right: An app in an App Space cannot take a Lakebase database today. I tried both resource routes through the API, and both were rejected. If the app needs Lakebase now, build it outside a space, where a Lakebase database is a documented app resource.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LingeshK_0-1793719876732.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/32921i9E1298E4B3E02A53/image-size/large?v=v2&amp;amp;px=999" role="button" title="LingeshK_0-1793719876732.png" alt="LingeshK_0-1793719876732.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Qn.&lt;/STRONG&gt; "Am I missing something or is this not possible yet?"&lt;/P&gt;
&lt;P&gt;It is not possible yet, as far as I can find. As of date (November 3, 2026) I tested both resource routes with the Databricks CLI on AWS:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;A resource on the app:&lt;/STRONG&gt; &lt;CODE&gt;databricks apps create-update&lt;/CODE&gt; with a &lt;CODE&gt;postgres&lt;/CODE&gt; resource returned "Apps in space ... cannot declare a resource of this type on the app. Allowed resource types: []". A SQL warehouse got the same error, so an app in a space cannot declare any resource of its own.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;A shared resource on the space:&lt;/STRONG&gt; The &lt;A href="https://github.com/databricks/terraform-provider-databricks/blob/main/docs/resources/app_space.md" target="_blank"&gt;Terraform app_space resource&lt;/A&gt; lists &lt;CODE&gt;postgres&lt;/CODE&gt; as a space resource type and says that resources on a space are granted to the space's own service principal. Adding one with &lt;CODE&gt;databricks apps update-space&lt;/CODE&gt; returned "Space ... has no principal to grant shared resources to". The space I created through the API had no service principal. A second space with the resource in the create request failed the same way.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Options for now:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Build outside a space:&lt;/STRONG&gt; The builder page says that &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/genie-app-builder" target="_blank"&gt;to control the app code, runtime or scaling, you create an app from a template or a custom app instead&lt;/A&gt;. That app can take the Lakebase resource, and you need CAN MANAGE on the Lakebase project to add it.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Keep state in a volume:&lt;/STRONG&gt; If the app in the space only needs to keep state, the builder page also lists a Unity Catalog volume as a store, and volumes are one of the Shared data types.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Before you rely on this:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Testing:&lt;/STRONG&gt; I tested only via the CLI and the REST API, not the App Spaces UI. If your space settings page offers Lakebase under Shared resources, that would change the answer.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Check before you act:&lt;/STRONG&gt; A space created in the UI may have a service principal where mine did not. The first command below shows whether your space has &lt;CODE&gt;service_principal_client_id&lt;/CODE&gt; set. If it has one, the second command attaches the database to the space. I could not run that case, so I would like to hear the result.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Beta:&lt;/STRONG&gt; Genie App Builder and App Spaces are both Beta, so the resource rules may change.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;databricks apps get-space my-space -o json

databricks apps update-space my-space resources --json '{
  "resources": [{
    "name": "postgres",
    "postgres": {
      "branch": "projects/my-project/branches/production",
      "database": "projects/my-project/branches/production/databases/databricks-postgres",
      "permission": "CAN_CONNECT_AND_CREATE"
    }
  }]
}'&lt;/PRE&gt;
&lt;P&gt;Happy to look at the &lt;CODE&gt;get-space&lt;/CODE&gt; output if you run it on your space.&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2026 15:34:20 GMT</pubDate>
    <dc:creator>LingeshK</dc:creator>
    <dc:date>2026-11-03T15:34:20Z</dc:date>
    <item>
      <title>Add resource to app space</title>
      <link>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175321#M56982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I recently started trying out the Genie App Builder first presented at DAIS. For this I created an app space and I wanted to connect my app to a lakebase project. But I can't seem to find any options to do this like it works with apps which are not tied to an app space. Am I missing something or is this not possible yet?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 12:56:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175321#M56982</guid>
      <dc:creator>JanW</dc:creator>
      <dc:date>2026-11-02T12:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add resource to app space</title>
      <link>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175325#M56985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/269143"&gt;@JanW&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Based on the current documentation, this looks like a limitation of the new &lt;STRONG&gt;Genie App Builder + App Spaces&lt;/STRONG&gt; model.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Genie App Builder apps are created &lt;STRONG&gt;inside an App Space&lt;/STRONG&gt;, and App Spaces currently define governance mainly through user authorization scopes, permissions, and serverless usage policies. The documented App Space configuration does &lt;STRONG&gt;not currently expose Lakebase as an attachable app resource&lt;/STRONG&gt; in the same way as traditional/custom Databricks Apps.&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/genie-app-builder" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/databricks-apps/genie-app-builder&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Nov 2026 14:08:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175325#M56985</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2026-11-02T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add resource to app space</title>
      <link>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175477#M57007</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/269143"&gt;@JanW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following up on the answer above from &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/22314"&gt;@saurabh18cs&lt;/a&gt;&amp;nbsp; and the results of a quick API test. Thank you for setting out what you tried and how you compared it with an app outside a space. That made the case easy to reproduce&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Short answer:&lt;/STRONG&gt; You are not missing a setting. The answer above is right: An app in an App Space cannot take a Lakebase database today. I tried both resource routes through the API, and both were rejected. If the app needs Lakebase now, build it outside a space, where a Lakebase database is a documented app resource.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LingeshK_0-1793719876732.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/32921i9E1298E4B3E02A53/image-size/large?v=v2&amp;amp;px=999" role="button" title="LingeshK_0-1793719876732.png" alt="LingeshK_0-1793719876732.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Qn.&lt;/STRONG&gt; "Am I missing something or is this not possible yet?"&lt;/P&gt;
&lt;P&gt;It is not possible yet, as far as I can find. As of date (November 3, 2026) I tested both resource routes with the Databricks CLI on AWS:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;A resource on the app:&lt;/STRONG&gt; &lt;CODE&gt;databricks apps create-update&lt;/CODE&gt; with a &lt;CODE&gt;postgres&lt;/CODE&gt; resource returned "Apps in space ... cannot declare a resource of this type on the app. Allowed resource types: []". A SQL warehouse got the same error, so an app in a space cannot declare any resource of its own.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;A shared resource on the space:&lt;/STRONG&gt; The &lt;A href="https://github.com/databricks/terraform-provider-databricks/blob/main/docs/resources/app_space.md" target="_blank"&gt;Terraform app_space resource&lt;/A&gt; lists &lt;CODE&gt;postgres&lt;/CODE&gt; as a space resource type and says that resources on a space are granted to the space's own service principal. Adding one with &lt;CODE&gt;databricks apps update-space&lt;/CODE&gt; returned "Space ... has no principal to grant shared resources to". The space I created through the API had no service principal. A second space with the resource in the create request failed the same way.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Options for now:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Build outside a space:&lt;/STRONG&gt; The builder page says that &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/genie-app-builder" target="_blank"&gt;to control the app code, runtime or scaling, you create an app from a template or a custom app instead&lt;/A&gt;. That app can take the Lakebase resource, and you need CAN MANAGE on the Lakebase project to add it.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Keep state in a volume:&lt;/STRONG&gt; If the app in the space only needs to keep state, the builder page also lists a Unity Catalog volume as a store, and volumes are one of the Shared data types.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Before you rely on this:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Testing:&lt;/STRONG&gt; I tested only via the CLI and the REST API, not the App Spaces UI. If your space settings page offers Lakebase under Shared resources, that would change the answer.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Check before you act:&lt;/STRONG&gt; A space created in the UI may have a service principal where mine did not. The first command below shows whether your space has &lt;CODE&gt;service_principal_client_id&lt;/CODE&gt; set. If it has one, the second command attaches the database to the space. I could not run that case, so I would like to hear the result.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Beta:&lt;/STRONG&gt; Genie App Builder and App Spaces are both Beta, so the resource rules may change.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;databricks apps get-space my-space -o json

databricks apps update-space my-space resources --json '{
  "resources": [{
    "name": "postgres",
    "postgres": {
      "branch": "projects/my-project/branches/production",
      "database": "projects/my-project/branches/production/databases/databricks-postgres",
      "permission": "CAN_CONNECT_AND_CREATE"
    }
  }]
}'&lt;/PRE&gt;
&lt;P&gt;Happy to look at the &lt;CODE&gt;get-space&lt;/CODE&gt; output if you run it on your space.&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2026 15:34:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-resource-to-app-space/m-p/175477#M57007</guid>
      <dc:creator>LingeshK</dc:creator>
      <dc:date>2026-11-03T15:34:20Z</dc:date>
    </item>
  </channel>
</rss>

