简体   繁体   中英

Azure Application Insights Greyed Out but logs are populating

I have an app service running in azure. The app service is running a linux container running a .NET 5 app service.

I have added the Microsoft.ApplicationInsights.AspNetCore Nuget.

I have added the AddApplicationInsightsTelemetry() to my 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'

If i go into my resource group and open the Application Insights resource directly i can see all the logs without any issue. However when i go into my app service resource the Application Insights link is greyed out. 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. There's another answer to this situation. And it's true that you can only install sdk to set up app insights here.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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