Creating a connected architecture with functions
A connected architecture with functions refers to creating multiple functions, whereby the output of one function triggers another function and provides data for the next function to execute its logic. In this section, we will continue with the previous scenario of the Storage account. In this case, the output of the function being triggered using Azure Storage Blob files will write the size of the file to Azure Cosmos DB.
The configuration of Cosmos DB is shown next. By default, there are no collections created in Cosmos DB.
A collection will automatically be created when creating a function that will be triggered when Cosmos DB gets any data:
Figure 10.19: Creating an Azure Cosmos DB account
Let's follow the below steps to retrieve data for the next function from the output of one function.
- Create a new database,
testdb
, within Cosmos DB, and create...