Triggers for Blobs



  • A simple example of a Function that gets triggered when a Azure Storage Blob is modified:
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();
        
    }
}
click below button to copy the code. By azure tutorial team

Related Searches to Triggers for Blobs