Share via

Function app not logging to App insight

bengt bengan 20 Reputation points
2023-11-15T09:25:17.35+00:00

Hi,

We have created a Function app with private endpoint and vnet integration.
But now Function app does not send logs to application insight.
The network setup is hub and spoke withe Azure firewall in the hub. So the dedicated subnet is using route table to the hub.

Information and what we have tested:

  • Added VnetRouteAllEnabled to app settings.
  • Added Application insight and Azure monitor FW rules in Azure Firewall.
  • We can se logs in application filesystem.
  • We don't se any logs in Azure firewall from function app regarding logs or monitor. We can se our function/code requests in Firewall logs.
  • Application Insight is connected to Function app.
  • If we disable vnet integration (Outbound) the application insight is getting logs.
  • All RBAC roles is correct for log analytic, func app, app insight etc.
  • No NSG is blocking traffic.

Thanks in advanced.

Best regards

Bengan

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Dan Rios 2,050 Reputation points MVP
    2023-11-15T17:36:02.2333333+00:00

    I'm pretty sure I've had to add this value for it to work in the app settings - I know it's for storage in the docs but seemed to light everything up when using private endpoints for the Functions.

    WEBSITE_CONTENTOVERVNET = 1
    

    If that works, feel free to mark as the accepted answer so others can know too!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.