Creating a blob trigger for newly created folder not triggering blob

David Andrews 26 Reputation points
2022-02-25T20:49:12.72+00:00

I have a blob trigger for a new folder on an existing blob container but I've created a new folder that will trigger the blob.

The blob trigger works fine on a local storage emulator but when I deploy to a function app on azure it does not work for the new folder. If I point the blob trigger to an existing folder on that blob container it works fine but any new folder I am trying to create doesnt work.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,908 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

Accepted answer
  1. Nasreen Akter 10,811 Reputation points Volunteer Moderator
    2022-02-28T20:17:50.78+00:00

    Hi @David Andrews ,

    Thank you for the ask. Let me explain a little bit, that way it would be easier to understand the problem. When we create a BlobTrigger function, an Event is created in the storageAccount with that azure function EndPoint. You can see it by going to the Storage Accout --> Events from left side menu. Now Subject Begins With means prefix, right, so in your case, if you see something like /blobServices/default/containers/status-service/blobs/inbound/Received, that means this condition is true for any file created in the status-service container with inbound/Received prefix. Now, if you want to expand the scope, you have to remove the sub-folder(s). Hope this will help. Thanks!

    178627-image.png


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.