Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I know there are few questions asked in the community specifying the same issue and I have gone through all of them but they don't apply to my scenario.
I have an api on my azure cloud with AAD authentication and I am using this api as data source via web connector in Power BI desktop. On Power BI desktop I am able to dynamically generate token through power query code, connect to the web api(anonymous access) and create a report from it. Refresh is also happening perfectly.
However when I published my report on to Power BI service and tried to refresh there I get the following error
On further investigation I went to settings and found this
It shows me Anonymous and Basic access method on the Power BI service for credentials
Any idea how to get past this?
My power query code is :
@sidarth1989 - If your Power Query code is doing the authentication then can you choose Anonymous?
@sidarth1989 - But it doesn't like Anonymous in the Service? Is that the issue?
@sidarth1989 , while setting up Scheduler you have an option for the gateway ? Have you tried that?
@amitchandak I did not try data gateway because my data source is in the cloud. But the option for gateway is greyed out for me
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!