Forum Discussion
Anonymous
4 years agoNot applicable
SPN to query PBI dataset using REST api calls
Hi, I am trying to use "REST api support for DAX" feature relased by MSFT in aug for public preview. https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-supp...
TomMartens
4 years agoSuper User
Hey Anonymous ,
here on my github repo you will find some examples on how to create a SPN and use this in combination with the Power BI Admin Scanner REST APIs. There is a presentation and some PowerShell scripts that you might find useful.
Hopefully, this helps to tackle your challenge, if not please share your code, otherwise it's difficult provide more guidance: https://github.com/tomatminceddata/thehive
Regards,
Tom
Anonymous
4 years agoNot applicable
thanks and I looked at the files and i have followed the simiar steps with respect to import modules - preparing auth with variables- connecting to PBI service acc..
I see no difference in my code,unfortunately,i am still having same '401 unauthorized' error