Connecting to the Azure Cloud storage from local Visual Studio environment
In both of the previous recipes, you learned how to create and execute Azure Functions in a local environment. We have triggered the function from a local browser. However, in this recipe, you will learn how to trigger an Azure Function in your local environment when an event occurs in Azure. For example, when a new Blob is created in a storage account, you can have your function triggered on your local machine. This helps the developers test their applications upfront before they deploy them to the production environment.
Getting ready
- Create a storage account and a container named
cookbookfiles
in Azure. - Install Microsoft Azure Storage Explorer from http://storageexplorer.com/.
How to do it...
- Open the
FunctionAppInVisualStudio
Azure Function app in Visual Studio and add a new function namedBlobTriggerCSharp
, as shown in the following screenshot:

- In the storage account connection, provide
AzureWebJobsStorage
as the...