合并两个Application Insights资源时出现未知功能的应用程序 [英] Unknown function app while merging two Application Insights resources

查看:53
本文介绍了合并两个Application Insights资源时出现未知功能的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在一个项目中,我们在React应用程序中有一个dotnet MVC应用程序.我们将所有内容托管在Azure中.MVC和React应用程序链接到Azure Application Insights资源以进行监视.

So I am in a project where we have a dotnet MVC app inside a React application. We are hosting everything in Azure. The MVC and the React applications are linked to Azure Application Insights resources for monitoring.

我想知道如何在Log Analytics中统一这两种应用程序见解.我通过本文档这两种资源都存在并且在同一资源组中.我觉得我没有从正确的范围执行查询.我尝试从整个订阅的范围,整个资源组以及应用程序的范围执行相同的查询.

I was wondering how I could unify both application insights for my queries in Log Analytics. I went through this documentation. The problem being that I always get an error saying: "unknown function app" when I try to do the following: Both resources exist and are in the same resources group. I feel like I am not executing the query from the right scope. I tried executing this same query from the scope of the entire subscription, the complete resource group and from the application's scope.

我想知道是否有人会知道如何执行这样的查询并使用app函数.

I was wondering if someone would know how to execute such a query and use the app function.

链接的文档指的是工作区".我认为这是我的范围问题的根源,因为我只尝试从Azure Monitor页面和前面提到的范围中运行查询.

The linked documentation refers to a "workspace". I think this is the source of my scope problem, since I only tried to run the query from the Azure Monitor page and from the scopes I mentionned previously.

更新IntelliSense现在知道该应用程序功能,但是出现以下错误:

UPDATE IntelliSense is now aware of the app function, but I get the following error:

非常感谢您阅读我的问题!我是Azure监控的新手!

Thank you very much for reading my question! I am new to Azure Monitoring!

推荐答案

我在Log Analytics工作区中尝试了该查询,它可以很好地工作.

I tried this query in Log Analytics workspace, and it can work well.

您可以尝试仅运行查询 app('your_application_insights').requests 来查看它是否可以在Azure Log Analytics/Azure Monitor/Application Insights中工作.

You can try just run the query app('your_application_insights').requests to see if it can work in Azure Log Analytics / Azure Monitor / Application Insights.

或者这可能是由于突然的服务器错误所致,您可以稍后再试.

Or this may due to a sudden server error, you can try it later.

这篇关于合并两个Application Insights资源时出现未知功能的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆