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 SP OAuth wont generate token

_rafa
New Contributor

Hi all,

Hopefully someone has had this issue and fixed it before. No matter how many times I try, no token is generated (yes, i am in a premium tier). 

Any ideas?

_rafa_0-1702294084413.png

 

I tried using the API but I got this error that apparently is because I am in Azure. 

_rafa_1-1702294208009.png

for the SP the permission are configured (at least i belive so)

_rafa_0-1702294866329.png_rafa_1-1702294945196.png

 

Please help 😞 

1 REPLY 1

Yeshwanth
Databricks Employee
Databricks Employee

Hello @_rafa  ,

Currently, we do not have an API similar to the "https://<databricks-instance>/api/2.0/token-management/on-behalf-of/tokens" in azure as Azure supports the service principle authentication by default. Please authenticate to normal PAT generation using SP’s AAD token.

So currently please use the below document for the getting the tokens:
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/service-prin-aad-token

https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/service-prin-aad-token#-...

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now