可以将Application Insights与运行.NET Core 3运行时的Linux Web App一起使用吗? [英] Can Application Insights be used with a Linux Web App running .NET Core 3 runtime?
问题描述
我正在向我的资源组添加一个Azure应用程序服务计划.我希望它成为.NET Core 3 Web API的Linux主机.此外,我想使用Application Insights.但是,使用Azure门户时,将应用程序见解添加到Linux .NET Core 3应用程序的选项显示为灰色.Application Insights当前不支持.我有另一个Linux Web App,它在运行时使用Node LTS,这使我可以毫无问题地添加Application Insights.将应用程序见解添加到运行在Azure Linux Web应用程序中的.NET Core 3 Web API方面,我需要做些特殊的事情吗?
I am adding an Azure Application Service Plan to my resource group. I'd like it to be a Linux Host for a .NET Core 3 Web API. Furthermore, I'd like to use Application Insights. However, when using the Azure Portal, the option to add Application Insights to a Linux .NET Core 3 application is greyed out. Does Application Insights not currently support. I have another Linux Web App that is using Node LTS as it's runtime and that allowed me to add Application Insights with no issue. Is there something special I need to do to add Application Insights to a .NET Core 3 Web API running in an Azure Linux Web App?
这是我所看到的一些屏幕截图
Here are some screenshots of what I am seeing
推荐答案
Asp.Net核心的Application Insights的无代码启用.您需要执行基于代码的启用,这涉及到将SDK nuget安装到项目中,如下所述: https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
Code-less enablement of Application Insights for Asp.Net core is not yet supported for linux. You need to do code-based enablement, which involves installing SDK nugets to your project as documented below: https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
这篇关于可以将Application Insights与运行.NET Core 3运行时的Linux Web App一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!