对于 Application Insights 集群,将查询从 Azure 数据资源管理器导出到 Power BI 失败

问题描述 投票:0回答:1

我设法从 Azure 数据资源管理器查询我的 AI 遥测数据,并将集群指定为:

https://ade.applicationinsights.io/subscriptions/MYSUBSCRIPTION-GUID/resourcegroups/MY-RG/providers/microsoft.insights/components/MY-AINAME

Successful query in Azure Data Explorer

当我使用导出到 Power BI 时,我收到以下脚本:

let 
    Source = AzureDataExplorer.Contents("https://ade.applicationinsights.io/subscriptions/MYSUBSCRIPTION-GUID/resourcegroups/MY-RG/providers/microsoft.insights/components/MY-AINAME", "uptakesim", "customEvents#(lf)| where timestamp > ago(1d)", [Timeout = #duration(0,0,4,0)])
in
    Source

当我尝试在 Power BI 中运行导出的查询时,出现以下错误:

Power BI error message

由于某种原因登录失败并且不显示任何登录提示。

如果我将网址结尾为

/microsoft.insights
(
https://ade.applicationinsights.io/subscriptions/MY_SUBSCRIPTION/resourcegroups/MY-RG/providers/microsoft.insights
),删除
/components/MY-AINAME
即可登录。

powerbi azure-application-insights azure-data-explorer kql
1个回答
1
投票
  • 我在从 azure 数据浏览器 (Kusto) 导入应用程序洞察数据时尝试了相同的操作并遇到了相同的问题。请参阅MS 文档中的第四点,了解在 Power BI 中连接数据资源管理器集群时要使用的集群格式。我们只能使用 power BI 中的 azure data explorer 导入 Kusto 集群数据。 enter image description here

相反,您可以按照以下方法从 Power BI 中的应用程序洞察数据中读取数据。

  • 在 Azure 门户中打开应用程序洞察日志。

  • 键入查询并运行它。

  • 然后单击导出并选择 Power BI(作为 M 查询) enter image description here

  • 这将在

    .txt
    文件中提供查询。

  • 然后在Power BI桌面中,点击获取数据->空白查询

enter image description here

  • 单击高级编辑器。将示例代码替换为导出文件中的电源查询。 enter image description here

  • 在高级编辑器窗口中单击“完成”。

  • 数据将加载到 Power BI Power Query 编辑器中。

enter image description here

  • 从应用程序洞察日志导出时,您还可以选择Power BI(新数据集)。请参阅MS 文档了解更多详细信息。

参考: Log Analytics 与 Power BI 和 Excel 集成 - Azure Monitor |微软学习

© www.soinside.com 2019 - 2024. All rights reserved.