0

我使用ASP.NET Web API创建了自定义OData馈送。此服务使用Azure Active Directory进行身份验证进行配置。我现在遇到的问题是,当我尝试将Power BI或Power Query连接到OData提要时。一旦我进入我的凭据,我得到以下错误:Power Query/PowerBI连接到使用AAD保护的自定义oDATA馈送

Invalid_resource: AADSTS50001: The application named https://localhost:44320 was not found in the tenant named XXX.onmicrosoft.com. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

我敢肯定,我已经正确配置AAD,我可以通过没有问题的Web浏览器连接起来。我不确定是否可以连接Power Query,因为我在各种论坛中看到了相互冲突的帖子!

任何帮助将不胜感激。

回答

1

我已经设法通过将我的WebAPI发布到Azure Web App来解决此问题。有趣的是,当它在Azure上托管时,它提示允许“Power Query for Excel”访问。这个问题可能局限于我在Dev框上运行IIS Express的事实。