cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Best pratice to import data from AAD Authorization API

Hi, all,

I need to import data from restful api, the api need bear token to request.

So currently I import dataset by python script in Power BI Desktop, and it works well.

The python script imports "datetime,msal,pandas,requests" module, it would acquire token first then call two RESTful API and merge them as one pandas DataFrame.

 

In the future I am going to enable schedule refresh in Power BI Service. So I would like to know:

1. Could I pass argument to python script since AAD authorization requires client secret?

2. Could python script dataset suitable for Power BI Service?

 

Or, could anyone suggest me another solution to get the data from AAD Authorization API? Like by Power Query?

 

Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Best pratice to import data from AAD Authorization API

Solve it by myself.

I use Azure Function with basic auth to wrap the AAD authed API.

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Best pratice to import data from AAD Authorization API

@dm-p , @ImkeF @edhans @HotChilli 


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Microsoft
Microsoft

Re: Best pratice to import data from AAD Authorization API

Solve it by myself.

I use Azure Function with basic auth to wrap the AAD authed API.

View solution in original post

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!