我设法从 Azure 数据资源管理器查询我的 AI 遥测数据,并将集群指定为:
https://ade.applicationinsights.io/subscriptions/MYSUBSCRIPTION-GUID/resourcegroups/MY-RG/providers/microsoft.insights/components/MY-AINAME
当我使用导出到 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 中运行导出的查询时,出现以下错误:
由于某种原因登录失败并且不显示任何登录提示。
如果我将网址结尾为
/microsoft.insights
(
https://ade.applicationinsights.io/subscriptions/MY_SUBSCRIPTION/resourcegroups/MY-RG/providers/microsoft.insights
),删除 /components/MY-AINAME
即可登录。
相反,您可以按照以下方法从 Power BI 中的应用程序洞察数据中读取数据。
在 Azure 门户中打开应用程序洞察日志。
键入查询并运行它。
然后单击导出并选择 Power BI(作为 M 查询)
这将在
.txt
文件中提供查询。
然后在Power BI桌面中,点击获取数据->空白查询
单击高级编辑器。将示例代码替换为导出文件中的电源查询。
在高级编辑器窗口中单击“完成”。
数据将加载到 Power BI Power Query 编辑器中。
参考: Log Analytics 与 Power BI 和 Excel 集成 - Azure Monitor |微软学习