Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am unable to create connection from PowerBI to Azure Databricks with OAuth(Azure AD authentication). I have successfully created vnet data gateway and we can create connection using that exact gateway with PAT. So the issue only exists when trying to use OAuth.
Here is the error:
Unable to create connection for the following reason: OAuth login through the data gateway was unsuccessful. Specific error details available below and in the gateway logs.
Details: xxxx-vnet-gateway: The service returned an invalid token. Please contact your IT administrator if this issue persists. Please have this information handy if you choose to create a support ticket. Session Id: xxxxx RequestId: xxxxx Cluster URI: https://api.powerbi.com Status code: 400 Time: Thu May 22 2025 14:22:41 GMT+0300 (Eastern European Summer Time)
Solved! Go to Solution.
Hi @Matias1256 ,
Use PAT authentication it will be good for production applications. We have a 50k + users tenant I never seen anyone using Oauth authentication on service with databricks connections.
Thanks,
Sai Teja
Hi @Matias1256 ,
Thank you for reaching out to Microsoft Fabric Community Forum.
can you try below debug steps to resolve your issue.
Regards,
Chaithanya.
Hi,
We can create the connection with PAT as said in the first post. The problem is that OAuth doesn't work.
Hi @sergej_og ,
I suggest reaching out to Microsoft Support by raising a ticket. Microsoft will analyze backend logs and provide a resolution
Below is the link to create Microsoft support ticket:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
Regards,
Chaithanya.
I don't get you.
I don't have any reason to raise a ticket to MS.
Just try to support Matias1256.
Regards
Appologies @sergej_og ,
instead of tagging the @Matias1256 i tagged you sorry for that
@Matias1256 can you raise a support ticket for this so that they can assit you in addressing the issue you are facing.
Regards,
Chaithanya.
Working setup for me:
Using on-prem gateway and using Key as the auth method.
This key you can create within databricks env in your "user settings".
Of course, permissions need to be in place.
Maybe an alternative approach for you.
Yes Key/PAT authentication works but not OAuth.
Ok, you have a working approach.
That's nice. Enjoy your data...
Why do you want to use OAuth so badly?
Hi @Matias1256 ,
we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Regards,
Chaithanya
Update Gateway: Ensure the VNet Data Gateway is updated to the latest version. OAuth via gateway requires recent updates.
Enable OAuth in Gateway:
Check Azure AD App Permissions:
Token Mapping (if custom DNS or Private Link used):
Re-created the gateway, but we still have the same error. I cannot find Azure Databricks Enterprise App so that might be the issue. We have SCIM provisioning and related Enterprise Apps in place.
Hi @Matias1256 ,
Use PAT authentication it will be good for production applications. We have a 50k + users tenant I never seen anyone using Oauth authentication on service with databricks connections.
Thanks,
Sai Teja
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
30 | |
20 | |
19 | |
13 | |
13 |
User | Count |
---|---|
28 | |
18 | |
18 | |
16 | |
14 |