@gandharv30 , as we troubleshooted the issue over the comment section, I am summarizing the root cause as answer.
The function app in the Azure was pointing to a different storage account than the one you were using for local debugging. The storage account used for the deployed function does not have the container "test1" created which is why you see the error "Container 'test1' does not exist" in the deployed function, but for local debugging it works fine which is pointing to the storage account having the container "test1" as expected.
How to fix container does not exist in azure functions?
I have created an azure functions app with blob storage trigger. Now in my storage account, there is container 'test1' in which their is a folder 'my-directory' which I am tracking. I tested the code on my local machine, the function fires whenever a file is uploaded to blob storage mentioned above. But when I am running this on azure portal, the function does not fires at all when a file is uploaded to blob storage and shows the following two statements in the logs
Function 'pii' will wait 2000 ms before polling queue 'azure-webjobs-blobtrigger-dqml1'.
Container 'test1' does not exist.
I tried to these paths in function.json:-
"path": "test1/{name}.csv"
"path": "test1/my-directory/{name}.csv"
PS: I am using a free trial account!
-
Krish G 2,331 Reputation points
2020-08-28T21:03:07.577+00:00