觸發 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();
}
}