Member-only story
Create Azure Blob Storage Trigger to execute Azure Function
In this article, I will explain steps to create Azure Blob Storage Trigger to execute Azure Function. The Blob storage trigger starts Azure Function when a new file is uploaded. The Blob (uploaded file) contents are provided as input to the function. Azure Function reads the file content and map it to the XML format DTO. Ultimately it creates new XML document using DTO and Blob Storage output binding is configured to post generated XML files to another Blob storage container.
Why doing this Serverless?
Serverless computing is a model, which provides developers with multi-functioning tools, allowing to create top-notch apps more effectively.
Azure Function is a powerful serverless cloud platform, based on an Event-Driven Architecture allowing you to run code on-demand, with Microsoft taking care of the whole infrastructure and backend system.
Some of the benefits of doing this using Azure Functions are
1- Event-driven using triggers and bindings
2- Cost effective as it will use consumption-based plan
3- Easy to build and debug locally without additional setup and
4- Operate at scale in the cloud.