Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Can we connect to Power BI's datamart using Python?

Hey,   I'm following up on this post: How to connect to Power BI's datamarts using ADF or Python?    Is there now a way to connect to PowerBI's Datamarts to query/read the data from a Python pack...
  • v-pnaroju-msft's avatar
    1 year ago

    Hi OmarE,

     

    Thank you for your response.

    Please find below the key points when connecting Python to Power BI Datamarts, which may help in resolving the issue:

    1. SQL authentication (UID/PWD) is not supported for Power BI Datamarts.
    2. Users with Multi-Factor Authentication (MFA) must use Authentication=ActiveDirectoryInteractive, which will trigger a login pop-up for authentication.
    3. For users who do not have MFA enabled, Authentication=ActiveDirectoryPassword can be used. However, this method is only applicable if the organisation does not enforce MFA.

    If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.

     

    Thank you.