If I create an azure function Blob Trigger, I can define the both an input stream of the blob, and an output stream to which I would like to write some data, the signature being similar to below.
public async Task RunAsync(
[BlobTrigger(BlobPath, Connection = "FileStorage")]
Stream inputStream,
[Blob(OutputBlobPath, FileAccess.Write, Connection = "FileStorage")]
Stream outputStream,
/* other fields removed for brevity */
)
{
/* ... */
}
Is it possible to define something similar when using an EventGrid trigger that fires for blob being created? i.e.
public async Task RunAsync(
[EventGridTrigger] EventGridEvent eventGridEvent,
[Blob("{data.url}", FileAccess.Read, Connection = "FileStorage")] Stream input,
/* is something like this possible -> */ [Blob(?, FileAccess.Write, Connection = "FileStorage")] Stream output)
{
/* ... */
}