Summarizing the discussion. Thank you for your question about the Function App timer trigger not executing when using a User-Assigned Managed Identity (UMI) in the Flex Consumption plan
Here's how you can resolve this:
When using a UMI with Application Insights, ensure that the identity has the necessary permissions. Specifically, assign the "Monitoring Metrics Publisher" role to the UMI on the Application Insights resource.
This role allows the Application Insights SDK to authenticate using the UMI. Without it, the Function App host may fail to initialize, causing timer triggers not to activate and preventing logs from being recorded.
Example: For example, if you're using APPLICATIONINSIGHTS_AUTHENTICATION_STRING
to configure telemetry, the SDK attempts to use the UMI for authentication. Without proper access, the telemetry pipeline fails silently, affecting host startup.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer and Yes for "Was this answer helpful." And if you have any further questions, let us know.