azure function blob trigger java not invoked always

SOHRAB SHAIKH (EXTERNAL) 41 Reputation points
2022-10-26T10:23:52.313+00:00

I created a blob trigger using java

@FunctionName("MyBlobTriggerFunction")  
@StorageAccount("AZURE_STORAGE_ACCOUNT_NAME")  
public void run(  
        @BlobTrigger(name = "MyBlobTrigger", path = "%AZURE_STORAGE_CONTAINER_NAME%/{myBlobObj}.json", dataType = "binary") byte[] content,  
        @BindingName("myBlobObj") String name, final ExecutionContext context) {  

But this function is not always triggerred. When I upload a json file in the blob storage, it does not get triggers. But it worked earlier ie yesterday, but for today its not working.

Not able to find why uploading a file to blob storage is not triggering the function always. Can you pls assist.

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

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,456 Reputation points
    2022-11-01T13:45:33.337+00:00

    Hi @SOHRAB SHAIKH (EXTERNAL) ,

    Please use the latest version which is 5.0.0 of Microsoft.Azure.WebJobs.Extensions.Storage and check if the issue is resolved.
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash#install-a-specific-extension

    0 comments No comments