Summary
We are encountering a PERMISSION_DENIED error when deploying a Databricks Agent that uses Lakebase for agent memory, even though the endpoint creator has all documented permissions.
The failure happens during serving endpoint creation, which is triggered from a job task running a notebook that uses the databricks-agents library.
Based on the documentation and our permission setup, this deployment should succeed, but it fails when Databricks attempts to grant permissions to the served entity’s service principal.
We believe this is a Databricks bug related to Lakebase permission handling during agent deployment.
Environment
Cloud: AWS
Deployment mechanism:
Features involved:
Databricks Agents Framework
Lakebase (used for agent memory)
MLflow model logging with resource dependencies
What We’re Doing
Create a Lakebase instance to be used as agent memory
Log an agent model using MLflow, explicitly declaring the Lakebase dependency:
from mlflow.models.resources import DatabricksLakebase
mlflow.pyfunc.log_model(
...
resources=[
DatabricksLakebase(database_instance_name="agent-memory",
] )
Deploy the agent by:
Permissions Setup (Confirmed)
Expected Behavior
Actual Behavior
The deployment fails during served entity creation, with the following error:
Endpoint update failed Failed to deploy agent_model_1: Pre-deployment setup for served entity with name 'agent_model_1' and version '1' failed. Error: Served entity service creation failed. This often happens due to failure to grant the service principal associated with the served entity permission to access one or more Databricks product resources. Error: PERMISSION_DENIED: Failed to change permissions for SP 3e86aa94-20e8-4a99-aa48-7e4ae9fb895f. Reason: PERMISSION_DENIED: Endpoint creator doesn't have permission to access dependency type: LAKEBASE with name: agent-memory
Why We Believe This Is a Bug
The same user:
The Lakebase dependency is explicitly declared at model logging time using mlflow.models.resources.DatabricksLakebase
The user has:
The error occurs when Databricks internally attempts to grant permissions to the served entity’s service principal
The error message claims the endpoint creator lacks permission, which contradicts:
Actual permissions
Documented requirements
This suggests a bug in one of the following areas:
Permission validation for Lakebase dependencies during agent deployment
Service principal permission propagation for Lakebase
Handling of Lakebase as a dependency type in the Agents framework
Request
Can the Databricks team confirm whether:
If this is a bug, we would appreciate help escalating this to the relevant engineering team.
We’re happy to provide workspace details or a full repro privately if needed.