3 weeks ago
Hi,
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?
Thanks
3 weeks ago
Hello @JanW
Following up on the answer above from @saurabh18cs 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
Short answer: 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.
Qn. "Am I missing something or is this not possible yet?"
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:
databricks apps create-update with a postgres 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.postgres as a space resource type and says that resources on a space are granted to the space's own service principal. Adding one with databricks apps update-space 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.Options for now:
Before you rely on this:
service_principal_client_id 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.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"
}
}]
}'
Happy to look at the get-space output if you run it on your space.
Hope this helps!
3 weeks ago
Hi @JanW
3 weeks ago
Hello @JanW
Following up on the answer above from @saurabh18cs 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
Short answer: 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.
Qn. "Am I missing something or is this not possible yet?"
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:
databricks apps create-update with a postgres 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.postgres as a space resource type and says that resources on a space are granted to the space's own service principal. Adding one with databricks apps update-space 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.Options for now:
Before you rely on this:
service_principal_client_id 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.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"
}
}]
}'
Happy to look at the get-space output if you run it on your space.
Hope this helps!
2 weeks ago
Hi,
sorry for the late answer, I was at the Databricks Data + AI World Tour and your response somehow got lost in my emails.
I just tried both of your commands, here is the (redacted) output:
{
"create_time": "2026-10-12T07:16:30Z",
"creator": "abc@xyz.com",
"description": "",
"effective_usage_policy_id": "",
"id": "6c1bb322-131e-47ac-957b-bfb2aa963f9b",
"name": "test-jan",
"status": {
"message": "Space is ready.",
"state": "SPACE_ACTIVE"
},
"update_time": "2026-10-27T07:32:34Z",
"updater": "abc@xyz.com",
"user_api_scopes": [
"sql:restricted-query",
"genie",
"model-serving",
"catalog.catalogs:read",
"catalog.schemas:read",
"catalog.tables:read",
"files",
"ai-functions",
"ai-gateway",
"mcp.external",
"mcp.functions",
"postgres",
"sql",
"workspace.workspace",
"vector-search",
"catalog.connections"
]
}and
Error: Space 'test-jan' has no principal to grant shared resources to, so resources and data cannot be configured for itSimilar to you, my app space also has no service principal. I, however, created it using the UI, so the way the app sapce is created does not matter.
Thanks for your help ๐
Jan