App service logs not getting reflected in Application insight when changing the Instrumentation key.

Govinda Kumar 1 Reputation point

I am facing a weird issue where I have an app service where I have deployed my .NET Core 3.1. code from where I am logging to Application insight using the instrumentation key from the configuration file, I deployed my code first time in Subscription A using Application insight in Subscription B and it was working fine. I was able to see the logs in Application insight. Then I changed the Instrumentation key in the configuration to log to an Application insight in Subscription A but still the logs are going in the Application Insight instance of Subscription B.

I am doing application insight logging from the code itself so I haven't explicitly enabled Appinsight logging for App service.

Is something App service is holding for the old application insight?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,356 questions
{count} votes