Using an output binding with a trigger bindings whilst binding to an SDK-type (stream/blobClient etc.) leads to an error.
[Function(nameof(BlobTriggerStreamTest))]
[BlobOutput("test-output-stream-dotnet-isolated/output.txt")]
public async Task<string> BlobTriggerStreamTest(
[BlobTrigger("test-trigger-stream-dotnet-isolated")] Stream stream,
FunctionContext context)
{
using var blobStreamReader = new StreamReader(stream);
string content = await blobStreamReader.ReadToEndAsync();
_logger.LogInformation(".NET Blob trigger function processed a blob.\n Content: " + content);
return content;
}
Error:
The 'BlobTriggerStreamTest' function is in error: Value cannot be null. (Parameter 'input').