While Passing Blob name into Azure Function, it won't able to trigger while adding message to Queue
Not Working
#r "Newtonsoft.Json"
using System;
using Newtonsoft.Json;
public static void Run(string myQueueItem,
Stream outputBlob,
ILogger log)
{
log.LogInformation($"C# Queue trigger function processed: {myQueueItem}");
dynamic data = JsonConvert.DeserializeObject(myQueueItem);
log.LogInformation($"We got a new Queue Request Type: {data.MessageType}");
if(data.MessageType == "Create Blob")
{
// outputBlob = data.Message;
}
// outputBlob = "";
string blobFileName = "tettet.script";
}
Working
I want the File To be created as the queue message contain in body section.
Also need to assign the Blob File Name from Queue Object as parameter.(uploadedscript/{blobFileName})