Azure function blob trigger firing twice

Samuel Janoska 1 Reputation point
2023-07-13T11:15:42.6366667+00:00

Hi,
when I place a blob in container in a specific virtual directory, my azure function is supposed to fire. It does, and it does so twice. When I look in Azure Monitor, i see only one execution, but I can observe two of them in Application Insights. Also I can see that two requests are generated. How to resolve this?

I can see someone had a similar issue in the past, but I'm not working with event grid.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,016 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,283 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Vinodh247 9,256 Reputation points
    2023-07-13T11:25:16.6066667+00:00

    Hi,

    Thanks for reaching out to Microsoft Q&A.

    Are you sure the cause of event trigger (placing a blob in container in a specific virtual directory) happened only once?

    There's a nice answer from 'Mayank bargal' in the below link (it is for email trigger but both involve azure function multiple triggering issue) which analyzes all the combinations that would cause multiple triggers, please go through.

    https://learn.microsoft.com/en-us/answers/questions/1127836/azure-function-with-timer-trigger-firing-twice

    Please Upvote and Accept as answer if the reply was helpful, this will be benefitting the other community members who go through the same issue.

    0 comments No comments

  2. Samuel Janoska 1 Reputation point
    2023-07-14T08:11:41.3333333+00:00

    Thank you, it appears we have already another function working (which is something that I did not think would happen so early), so the root cause is there were two functions running, one on my account and then another one.


  3. MayankBargali-MSFT 67,081 Reputation points
    2023-07-18T12:15:22.6966667+00:00

    Hi @Samuel Janoska

    I'm glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this.

    Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    Issue: You observe that your function app fires twice when you upload the blob to the configured container.

    Resolve: You found that there were two functions that was causing this behavior.

    0 comments No comments