azure-functions-templates icon indicating copy to clipboard operation
azure-functions-templates copied to clipboard

Azure function blob trigger not triggering for a particular blob path

Open lijithomas88 opened this issue 2 years ago • 0 comments

Hi Team,

Azure function Blob trigger (dotnet script-created from azure portal itself) is not triggering for a particular blob path. For remaining blob paths, it is triggering.

Blob trigger is not working when container path is - tenants/tenants/tenant294178/DivT_PI12_eMobility For every other container path , this blob trigger is working. Please help. Code in Run.csx file is added below.

#r "Microsoft.WindowsAzure.Storage"

using Microsoft.WindowsAzure.Storage.Blob; using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks;

public static void Run(CloudBlockBlob myBlob, string name, TraceWriter log)

{ string blobname=Path.GetFileName(myBlob.Name);
log.Info($"name: {blobname}"); //string blobname=myBlob.Name; var fullpath=myBlob.StorageUri; string size=myBlob.Properties.Length/1024 + " KB"; var LastModified=myBlob.Properties.LastModified; var blobtype=myBlob.Properties.BlobType; log.Info($"blobtypeeee: {blobtype}");

}

Function.json is below

{ "bindings": [ { "name": "myBlob", "path": "tenants/tenants/tenant294178/DivT_PI12_eMobility/{name}", "connection": "digisolutionsgen2_STORAGE", "direction": "in", "type": "blobTrigger" } ]

lijithomas88 avatar Apr 25 '22 10:04 lijithomas88