Databricks Apps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 02:50 AM
I've created a Databricks App that is essentially a REST Api in Flask. It returns a json object. Data is in sql-warehouse. It works when calling directly in browser but I want to access it with rest api and Bearer token. But when I login with a service principal and get the access token from Azure I cannot access it. Databricks returns a 401.
With the same token I can call /api/2.1/jobs/runs/list so db recognize the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 07:37 AM
Does the Service Principal has permission access to all the resources involved within you app?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 08:10 AM
It has "sql access" and "workspace access". Perhaps I have look at the schema as well

