cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Azure Databricks account api can't auth

pawelmitrus
Contributor

Hi,

does anyone know about any existing issue with azure databricks account api? I cannot do below:

1. login with cli `databricks auth login --account-id <acc_id>, this is what I get https://adb-MY_ID.azuredatabricks.net/oidc/accounts/MY_ACC_ID/v1/authorize?client_id=databricks-cli&...

while login to the workspace works ok

2. can't assign a workspace to a metastore from TF - 403 workspace doesn't exist (all access rights seems to be ok, checked 3x already), it's trying to POST on https://docs.databricks.com/api/azure/account/accountmetastoreassignments/create, btw. 403 is not even in docs

Any ideas folks? 🙂

4 REPLIES 4

Yeshwanth
Honored Contributor
Honored Contributor

@pawelmitrus good day!

Please check the authentication types available for authenticating with Accounts API: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/auth/

Kind regards,

Yesh

Hi Yesh,

could you please be more specific which part of that docs I'd like me to check? I've been using this docs already, that's why I'm confused

Thanks, Pawel

Yeshwanth
Honored Contributor
Honored Contributor

@pawelmitrus , could you please confirm what authentication mechanism you are using to make the API request?

pawelmitrus
Contributor

UPDATE

 

Solved, the very same solution started to work today from running a pipeline with tf - M2M auth. with a service principal with fed auth. That's the 2 from my above post.

When trying to follow these steps https://learn.microsoft.com/en-us/azure/databricks/dev-tools/auth/oauth-u2m#cli I'm still getting the same error. This is the 1 from my above post. 

Pawel

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!