From the course: Extend Web Application Functionality on Microsoft Azure

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Implementing the Blob output binding in the Function

Implementing the Blob output binding in the Function - Azure Tutorial

From the course: Extend Web Application Functionality on Microsoft Azure

Implementing the Blob output binding in the Function

- [Instructor] We need to save those files somewhere, that's why we created the records container in the storage account. That's why we need an additional NuGet package here which is Microsoft.Azure.WebJobs.Extensions.Storage. So it's right here. And let's click on Install, Accept, and we're ready to go. So we need to implement the blob output binding. So let's go ahead and do the following. Here, I want to use the blob output binding that takes the blob path, in this case it's records and the file access that I want to use is write since we're going to create those PDF files. And the connection string setting that I want to use is WpmStorage. And let's decorate the following object which is BlobContainerClient. So we're going to use that for saving the blob. So let's see what's going on here. Let's use Connection equals the value, okay. So now we're ready to use that BlobContainerClient for uploading the blob. So we…

Contents