// Blob trigger binding to a CloudBlockBlob
#r "Microsoft.WindowsAzure.Storage"
using Microsoft.WindowsAzure.Storage.Blob;
public static void Run(CloudBlockBlob myBlob, out object documentToSave, TraceWriter log)
{
// some logic to read the blob and parse it
documentToSave = new {
id = "some value",
.. other properties here
};
}
1 回答
根据您的说法,您可以通过使用带有Blob Trigger和DocumentDB output binding的Azure功能来解决此问题 .
与
functions.json
类似:功能体可能是这样的: