Azure function trigger Twice

furkan moray 6 Reputation points
2022-11-18T06:45:28.113+00:00

Hello I have a problem about azure functions. I have a blob trigger function on azure. The problem is when i try to upload a file to blob container using by SFTP my function fires twice but if manually upload my file on azure its getting only one trigger. Note : Files comes as with the same name for each trigger not comes with the filepart. Is there any solution about that ?. Sharing the logs below. Please help me to fix that issue. Thank you. Azure Monitoring log

I tried to decrease file size to 1kb if the issue about file size but didn't work
[FixedDelayRetry(0, "00:00:10")] tried add this attribute and didn't work.
Tried upload file with powershell to sftp and same issue.
261706-azure-function-trigger.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. furkan moray 6 Reputation points
    2022-11-24T10:47:57.117+00:00

    Guys i got response from Azure support that issue related with microsoft and they tell fix it as soon as possible. The issue exactly appear when you use Eventgrid as source if you remove it then function only fires once but in this scenario latency increasing on your function. Anyway if you skip this issue till fixed you need to remove that.

    263885-azurefunc.png

    1 person found this answer helpful.
    0 comments No comments

  2. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-11-23T09:01:25.857+00:00

    Hi @furkan moray ,

    The blobs that have been already processed can be reprocessed if the blobs have been changed and the modified time has been updated. Or if the Blob receipts have been deleted from the underlying container.

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=in-process%2Cextensionv5&pivots=programming-language-csharp#blob-receipts

    So the best way to analyse this is to see if the Storage diagnostics logs show an updated or if they show that the blob receipts have been deleted.

    The blob receipts can also be removed as part of a Blob Lifecycle management policy .

    https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-policy-configure?tabs=azure-portal

    0 comments No comments

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.