How to Define a Path for Azure Blob Storing a trigger in Azure Function

Is there a way to activate the Azure feature without a specific specific container?

I expect this feature to be run for any file in any container. The file and container names must be in variables.

*****function.json: { "bindings": [ { "type": "blobTrigger", "name": "myBlob", "path": "{container}/{name}", "connection": "AzureWebJobsStorage", "direction": "in" } ], "disabled": false } *****run.csx: public static void Run(Stream myBlob, string name, string container, TraceWriter log, out string outputSbMsg) { log.Info("C# Blob trigger function Processed blob"); log.Info(name); log.Info(container); } 

However, nothing starts. Any idea what is wrong?

+5
source share
1 answer

Is there a way to activate the Azure feature without a specific specific container?

I assume that at the moment there is no way to run Azure Function without a specific concrete container. From the Azure document, we can use the blob trigger for Azure to monitor the storage container.

The Azure Storage blob trigger allows you to track the storage container for new and updated blocks and run the function code when changes are detected.

Based on my experience, we need to create several Azure functions for monitoring blobs as a workaround.

Update:

As mentioned in mathewec, this is an open issue , please refer to it.

+3
source

Source: https://habr.com/ru/post/1265118/


All Articles