Blob trigger implementation using Event Grid
The idea behind using Event Grid to implement Blob trigger events is to reduce latency. Besides, if you decide to define your functions using the Flex Consumption plan, this is the only option you will have.
To do so, while creating the function, select the Blob Trigger (using Event Grid) option. With this option, Visual Studio will create a different code for the Azure function.

Figure 5.16: Creating a Blob trigger function using Event Grid
It is important to mention that this function will run better on Azure than locally. For this, you need to create a general-purpose v2 storage account, which is mandatory for the event subscription.

Figure 5.17: Review of the creation of the storage account
In the same way that we have the prerequisite for Azure Storage, the function app for running this kind of trigger should consider using the Flex Consumption plan, as we can see in the following figure. The advantage...