Showing results for 
Search instead for 
Did you mean: 
Not applicable

Refresh powerbi dataset using python/service principal

Hi Am trying to refresh the powerbi dataset using Service Principal authentication in databricks.


Did anyone used service principal to refresh powerbi dataset using python from databricks please let me know.

Community Support
Community Support

Hi, @Anonymous 


I also didn't find an example using python.Here are links about using servive principal and powershell to refresh powerbi dateset.

Schedule dataset refreshes – since service principal cannot log in to the Power BI portal, it cannot configure scheduled refreshes. To tackle this challenge, we released a new API that configures scheduled refreshes for datasets, so that service principal can use it. Learn more.

If it doesn’t solve your problem, please feel free to ask me.


Best Regards

Janey Guo


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors