Creating an event-driven function
In this example, an Azure function will be authored and connected to an Azure Storage account. The Storage account has a container for holding all Blob files. The name of the Storage account is incomingfiles and the container is orders, as shown in Figure 10.5:
Figure 10.5: Storage account details
Perform the following steps to create a new Azure function from the Azure portal:
- Click on the + button beside the Functions menu on the left.
- Select In-Portal from the resultant screen and click on the Continue button.
- Select Azure Blob Storage trigger, as shown in Figure 10.6:
Figure 10.6: Selecting Azure Blob Storage trigger
Right now, this Azure function does not have connectivity to the Storage account. Azure functions need connection information for the Storage account, and that is available from the Access keys tab in the Storage account. The same information can be obtained using the Azure...