Reputation: 1977
Single Azure Function. I want it to trigger from all files uploaded to an Azure Storage account. The Storage Account has multiple top-level containers, so I can't specify one container, must be the entire account.
How is the function.json
file handled?
This doesn't seem to be triggering the Function:
{
"scriptFile": "__init__.py",
"bindings": [{
"name": "myblob",
"type": "blobTrigger",
"direction": "in",
"path": "{name}.json",
"connection": "storage-dev"
}]
}
Does the path need a leading /
? ("path": "/{name}.json"
)
Upvotes: 0
Views: 857
Reputation: 1977
The way to achieve this is to use an EventGrid
trigger rather than BlobTrigger
. Thank you to @BowmanZhu over at this thread for guiding me.
Upvotes: 0
Reputation: 6806
As far as I know, it is not possible to specify all containers as the trigger path in a blob trigger function. The solution I can think of is to create multiple functions and specify different containers respectively, so that you can achieve your expectations.
Upvotes: 1