I need to react to a blob that's added into a sub-folder. I know that blob storage doesn't recognize the folders, they are just virtual, but 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 and I receive the blob
Excerpt from function.json
:
{
"name": "subfolder/myblob",
"type": "blobTrigger",
"direction": "in",
"path": "rootContainer/{name}"
}
or
{
"name": "myblob",
"type": "blobTrigger",
"direction": "in",
"path": "rootContainer/subfolder/{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!
"path": "rootContainer/subfolder/{name}"
, it works fine, this is my result screenshot, I find there is noconnection
in yourfunction.json
, may it caused by this? But you said it works withrootContainer/{name}
, it is strange, I recommend you to change a storage account or explorer to try again. – Joy Wang-MSFTconnection
for brevity. I noticed that it's fired when a root isrootContainer
, and blob which comes has the following namesubfolder/{name}
. It isn't fired for path beingrootContainer/subfolder
. – Semuserable~1
. – Semuserable