No logs in app insights from azure function

I am writing logs from function class library to app insights. When I start app from local machine the logs are added to appInsights but when I deployed it to azure portal there are no my custom logs there(deployed from vs). What can be the case?

1 answer

  • answered 2020-11-20 12:11 MMThornberg

    It sounds like you are manually pushing log data to Application Insights in your local environment.
    For your Function App resource check the configuration to see if the function is logging to the expected Application Insights resource, specified by its instrumentation key:

    enter image description here