locked
Azure function blob trigger for subfolders RRS feed

  • Question

  • I have a container folder where there are many sub-folders(around 3000), a file can land in any of the sub-folders. I need to react to a blob that's added into a sub-folder. I still can't figure out how to create a blob trigger if files are added to sub-folders.

    Example:
    
    Excerpt from function.json: 
    {
        "name": "myblob",
        "type": "blobTrigger",
        "direction": "in",
        "path": "rootContainer/{name}"
    }
    
    OK, a function is triggered if I receive the blob in rootContainer folder
    
    Except from function.json: 
    {
        "name": "*/myblob",
        "type": "blobTrigger",
        "direction": "in",
        "path": "rootContainer/{name}"
    }
    or 
    {
        "name": "myblob",
        "type": "blobTrigger",
        "direction": "in",
        "path": "rootContainer/*/{name}"
    }

    NOT OK, a function isn't triggered

    There are not many questions regarding this problem and they still don't provide a normal answer. Can't find any info in documentation either.

    Thanks!

    Sunday, October 4, 2020 11:29 PM

All replies

  • Hi Amey,

    Since this thread is related to azure functions, I suggest that you can ask questions in the following forum.

    azure-functions

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, October 5, 2020 6:07 AM