From the course: Azure Functions for Developers

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Implementing the Blob trigger in the Resizer function

Implementing the Blob trigger in the Resizer function - Azure Tutorial

From the course: Azure Functions for Developers

Start my 1-month free trial

Implementing the Blob trigger in the Resizer function

- [Instructor] In this video, we'll see how to use the Blob storage trigger in Azure functions. So for this, I'm going to right click on the project and then I'm going to select the new Azure function option. Here, I'm going to specify the name as photos resizer. And in this dialog box, I'm going to choose Blob trigger. As you can see, you can specify the connection streams and name, and also the path. This is photos, which is the name of the container that we created in the previous video. So let's click on OK. As you can see here, this code is using the Blob trigger attribute that is decorating this stream object. It also included this name and this logger. Let's rename the logger to something more meaningful. So this Blob trigger is interesting because it's using this expression name inside this curly braces. This means that this Blob trigger is smart enough to know which file was uploaded to the Blob storage. And…

Contents