我在 Azure 中有 10 个 Web 应用程序。但我无法为它们配置 Application Insights,因为我还没有使用它们保存项目。 当我在 VisualStudio 中创建新的 WebApp 时,可以为应用程序添加 Application Insights 并发布到 Azure。 但是,当我使用 FTP URL 从 Visual Studio 连接到现有的 Azure WebApp 时,我无法添加 Application Insights 进行监控。 如何配置 Application Insights 来监控 10 个现有应用程序?或者有其他方法来监控它们吗?
最佳答案
如果您想在不重新发布的情况下监控 Azure 中已运行的应用程序,Microsoft 已发布了一个很好的教程,请在此处找到它:
此外,考虑将应用程序见解添加到您的项目代码库中以供将来发布,请同时查看 Microsoft 提供的本教程
https://learn.microsoft.com/en-us/azure/application-insights/app-insights-asp-net
希望这会有所帮助。
关于azure - 如何为现有 Azure WebApp 添加 Application Insights,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51821739/