Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powerbi 使用身份验证将Web API作为数据源连接到bi电源_Powerbi_Basic Authentication_Powerbi Desktop_Webapi_Azure Api Apps - Fatal编程技术网

Powerbi 使用身份验证将Web API作为数据源连接到bi电源

Powerbi 使用身份验证将Web API作为数据源连接到bi电源,powerbi,basic-authentication,powerbi-desktop,webapi,azure-api-apps,Powerbi,Basic Authentication,Powerbi Desktop,Webapi,Azure Api Apps,我有一个azure web api应用程序,其中包含大量post/get类型的web api以获取数据。这些API具有基本身份验证(承载令牌) 我想在PowerBI中使用2-3API作为数据源,以便可以将这些API JSON响应用作表 在Power BI Desttop>Get Data>Web>AddAPI URL和示例Get API方法名中,将起作用,但随后它会请求身份验证 如果我试图放置API密钥,那么它是说:只有在提供web API密钥名称时才能指定web API密钥 如何使用Po

我有一个azure web api应用程序,其中包含大量post/get类型的web api以获取数据。这些API具有基本身份验证(承载令牌)

  • 我想在PowerBI中使用2-3API作为数据源,以便可以将这些API JSON响应用作表

  • 在Power BI Desttop>Get Data>Web>AddAPI URL和示例Get API方法名中,将起作用,但随后它会请求身份验证

  • 如果我试图放置API密钥,那么它是说:只有在提供web API密钥名称时才能指定web API密钥


  • 如何使用PowerBI中的身份验证作为数据源连接web api。

    PowerBI web目前似乎很少或不支持通过webapi或web查询连接数据

    PowerBI桌面允许您从web获取数据。我已经能够通过两种不同的方式从Azure API Management管理的WebAPI访问数据:

  • 在“从Web”对话框中使用“高级”而不是“基本”。将webapi查询放在url中,但添加一个名为Ocp Apim Subscription Key的头,并将其作为api Key的值放在其中
  • 或者,使用Azure api管理管理的api,您可以将它们作为参数添加到apiquery中,这里的subscription key=PutYourApiKey,而不是将api键放在标头中
  • 但是,我发现,尽管您可以将数据源或报告发布到联机工作区,但PowerBI online在您尝试刷新数据时会出现错误(“凭据未识别”或类似错误!)!如上所述,PowerBI online目前(2020年11月)似乎无法连接到WebApi数据