How to do it...

Perform the following steps:

  1. Navigate to the BlobTriggerCSharp function in the Azure Management Portal and change the path of the path variable to point to the new container cookbookfiles-live. Then, re-publish it. It should look something like that shown in the following screenshot:
  1. Open the function app in Visual Studio 2017. Open Server Explorer and navigate to your Azure Function; in this case, FunctionAppinVisualStudio2017, as shown in the following screenshot:
  1. Right-click on the function and click on Attach Debugger, as shown in the following screenshot:
  1. Visual Studio will take some time to enable remote debugging, as shown in the following screenshot:
  1. The function app URL will be opened in the browser, as shown in the following screenshot, indicating that our function app is running:
  1. Navigate to Storage Explorer and upload a new file (in this case, I uploaded EmployeeInfo.json) to the cookbookfiles-live container, as shown in the following screenshot:
  1. After a few moments, the debug breakpoint will be hit, shown as follows, where you can view the filename that has been uploaded: