Forum Discussion

Vishnuvardhana's avatar
Vishnuvardhana
New Member
1 year ago
Solved

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!

  • NandanHegde's avatar
    NandanHegde
    1 year ago

    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

3 Replies

    • Vishnuvardhana's avatar
      Vishnuvardhana
      New Member

      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?

      • NandanHegde's avatar
        NandanHegde
        Super User

        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