Timer Trigger Not Executing on Function App with Flex Consumption Plan

Jan Claes 20 Reputation points
2025-06-12T11:41:48.61+00:00

When deploying a Function app in West Europe on a Flex Consumption plan using a user-managed identity to connect to the storage account and Application Insights, the timer trigger is not executing. There are no records in the invocation tab or Application Insights. In contrast, deploying the Function app with a system-assigned identity works without issues.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,867 questions
{count} votes

Accepted answer
  1. Khadeer Ali 5,815 Reputation points Microsoft External Staff Moderator
    2025-06-12T17:46:53.89+00:00

    @Jan Claes ,

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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