如何为现有 Azure WebApp 添加 Application Insights [英] How to add Application Insights for existing Azure WebApp

查看:24
本文介绍了如何为现有 Azure WebApp 添加 Application Insights的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Azure 中有 10 个 Web 应用程序.但是我无法为它们配置 Application Insights,因为我没有保存它们的项目.当我在 VisualStudio 中创建新的 WebApp 时 - 可以为应用程序添加 Application Insights 并发布到 Azure.但是当我使用 FTP URL 从 Visual Studio 连接到我现有的 Azure WebApp 时 - 我无法添加 Application Insights 进行监控.如何配置 Application Insights 以监控我的 10 个现有应用程序?或者有其他方法可以监控它们吗?

I have 10 Web Applications in Azure. But I can't configure Application Insights for them because I haven't saved projects with them. When I create new WebApp in VisualStudio - it possible to add Application Insights for application and publish to Azure. But when I connect to my existing Azure WebApp from Visual Studio with FTP URL - I can't add Application Insights for monitoring. How can I configure Application Insights for monitoring my 10 existing applications? Or is there another way to monitor them?

推荐答案

如果您想在不重新发布的情况下监控 Azure 中已经运行的应用程序,Microsoft 已发布了一个很好的教程,请在此处找到:

if you want to monitor an already running app in Azure without republishing Microsoft has released a nice tutorial on doing so please find it here :

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-monitor-performance-live-website-now

另外,考虑将应用程序洞察添加到您的项目代码库中以备将来发布,请同时查看 Microsoft 提供的本教程

also, consider adding application insights to your projects code base for future publishing please have a look at this tutorial provided by Microsoft as well

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-asp-net

希望这会有所帮助.

这篇关于如何为现有 Azure WebApp 添加 Application Insights的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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