I have a json in an azure blob that I need to deserialize and get a string from. The string is the name of a blob. I need to then copy the blob that is the input to this function with the name I just extracted to a storage container.
public static void Run([BlobTrigger("output/{name}", Connection = "AzureWebJobsStorage")]Stream myBlob, string name, TraceWriter log)
using (var sr = new StreamReader(myBlob))
using (var jsonTextReader = new JsonTextReader(sr))
{
var transcript = (someobject)serializer.Deserialize(jsonTextReader, typeof(Transcript));
string blobname = (someobject.Results[0].FileName).Substring(0, name.LastIndexOf('.'));
Above is the definiton of my current function and the method I am using to extract the filename from the json. Is this possible to do with blob input and output bindings? If so, is there a way to dynamically allocate the name of the output blob?