简体   繁体   English

Azure Application Insights 灰显,但正在填充日志

[英]Azure Application Insights Greyed Out but logs are populating

I have an app service running in azure.我有一个在 azure 中运行的应用服务。 The app service is running a linux container running a .NET 5 app service.该应用服务正在运行一个 linux 容器,该容器运行一个 .NET 5 应用服务。

I have added the Microsoft.ApplicationInsights.AspNetCore Nuget.我添加了 Microsoft.ApplicationInsights.AspNetCore Nuget。

I have added the AddApplicationInsightsTelemetry() to my Startup.cs我已将 AddApplicationInsightsTelemetry() 添加到我的 Startup.cs

public void ConfigureServices(IServiceCollection services)
{
    services.AddControllers();
    services.AddApplicationInsightsTelemetry();
}

The Instrument key is being added to the app service configuration in azure using the variable 'APPINSIGHTS_INSTRUMENTATIONKEY'仪器密钥正在使用变量“APPINSIGHTS_INSTRUMENTATIONKEY”添加到 azure 中的应用服务配置中

If i go into my resource group and open the Application Insights resource directly i can see all the logs without any issue.如果我将 go 放入我的资源组并直接打开 Application Insights 资源,我可以毫无问题地查看所有日志。 However when i go into my app service resource the Application Insights link is greyed out.但是,当我将 go 插入我的应用服务资源时,Application Insights 链接显示为灰色。 Any ideas why i cant navigate to the app insights resource from my app service?任何想法为什么我无法从我的应用服务导航到应用洞察资源?

在此处输入图像描述

That's resulting from it hasn't supported code-less mode for linux.这是因为它不支持 linux 的无代码模式 There's another answer to this situation.这种情况还有另一个答案 And it's true that you can only install sdk to set up app insights here.确实,您只能在此处安装 sdk 来设置应用洞察。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM