Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I am receiving an error in the Power BI Service. The error text is "Failed to update data source credentials: AADSTS700005: Provided Authorization Code is intended to use against another tenant, thus rejected." The two data sources are an Azure SQL Database and Azure Databricks. I am not receiving this error in Power BI Desktop, the dataset refreshes successfully.
Solved! Go to Solution.
Hi @Dennis_C20
Can you confirm that all the resources are within the same tenant?
If they are in different tenants as far as I am aware this will not work
You might have to configure the gateway and connect via a gateway to get this working
Hi @Dennis_C20 ,
By the errer code, you should check the tenant of the data source, as OAuth2 Authorization Code must be redeemed against same tenant it was acquired for.
Reference: Azure AD authentication & authorization error codes | Microsoft Docs
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Dennis_C20
Can you confirm that all the resources are within the same tenant?
If they are in different tenants as far as I am aware this will not work
You might have to configure the gateway and connect via a gateway to get this working
| User | Count |
|---|---|
| 16 | |
| 15 | |
| 13 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 40 | |
| 40 | |
| 34 | |
| 28 | |
| 27 |