cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth user-to-machine (U2M) authentication

Aria
New Contributor III

I am trying to use OAuth user-to-machine (U2M) authentication  from azure databricks CLI.

When I run databricks auth login --host  ,I get a web browser open and get authentication sucessfull message and My profile also save successfully with auth-type=Databricks-cli

I can see the token with databricks auth token --host command.But when I try to connect to databricks or run below command ,I get the error message related to default auth.

 

C:\Users\santil>databricks auth env --host hostname
Error: default auth: cannot configure default credentials. Config: host=, profile=dev

2 REPLIES 2

Ayushi_Suthar
Databricks Employee
Databricks Employee

Hi @Aria , Good Day! 

Which CLI version you are using here? Can you try to update the CLI version to a newer version by referring to this document : https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/install#--homebrew-update-for-linux...

If you still face the issue after updating the CLI version then could you please run the command with --debug and post the output? For eg : ~ databricks account groups list -p <configuration-profile-name> --debug

Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi

Anonymous
Not applicable

Same problem here.

After running the debug I got:

DEBUG Apply pid=5736 mutator=initialize mutator=seq mutator=PopulateCurrentUser
DEBUG non-retriable error: failed during request visitor: default auth: cannot configure default credentials

But I can perfectly perform some "basic" command in the CLI (i.e. databricks clusters list).

😣

Databricks CLI version is 0.221.1

Any idea?

Thanks in advance

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group