Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Vishnuvardhana
New Member

Refreshing Power BI Dataset from Azure Data Factory with Cross-Tenant Configuration

I'm trying to set up a data pipeline in Azure Data Factory (ADF) to refresh a Power BI dataset. The challenge I'm facing is that the Power BI workspace is in a different tenant ID than the ADF instance.

  • ADF is set up in Tenant A.
  • The Power BI workspace (where the dataset resides) is in Tenant B.

What is the best approach to trigger a Power BI dataset refresh from ADF in this cross-tenant setup? Are there any specific configuration steps, permissions, or service principals that need to be considered for this integration to work securely and effectively?

Any guidance or examples would be greatly appreciated!

1 ACCEPTED SOLUTION

Ideally leveraging a service account without MFA to generate OAUTh token is not a good security practice.

You can create an Azure function within the tenant in which the Power BI dataset is present, grant access to the Azure function in the workspace and write code within Az function to generate OAUTh token.

 

Then trigger the Azfunction via ADF and pass the OAUth toke into web activity for power bi dataset refresh etc




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

View solution in original post

3 REPLIES 3
NandanHegde
Super User
Super User

Please refer to the below link :

https://datasharkx.wordpress.com/2022/11/07/refresh-power-bi-dataflow-dataset-from-azure-data-factor...

 

Note : Even if the Dataset is in another tenant as ADF, you can have the service principal created in the tenant within the Dataset and leverage it within ADF




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Hello Nandan,

Thank you for your response! I understand that Service Principals are typically used for authentication, but unfortunately, I am unable to use a Service Principal in my scenario.

Since I cannot use a Service Principal, could you please provide guidance on how I can use a service account (or another approach) to trigger a Power BI dataset refresh when the dataset resides in a different tenant?

Ideally leveraging a service account without MFA to generate OAUTh token is not a good security practice.

You can create an Azure function within the tenant in which the Power BI dataset is present, grant access to the Azure function in the workspace and write code within Az function to generate OAUTh token.

 

Then trigger the Azfunction via ADF and pass the OAUth toke into web activity for power bi dataset refresh etc




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.