触发 Blob
修改 Azure 存储 Blob 时触发的函数的简单示例:
public static async Task BlobTrigger(
[BlobTrigger("my_container/{name}.{ext}")] Stream input,
string name,
string ext)
{
//Blob with name {name} and extension {ext}
using (StreamReader reader = new StreamReader(input))
{
//Read the blob content
string blobContent = await reader.ReadToEndAsync();
}
}