How to fix container does not exist in azure functions?

gandharv30 21 Reputation points
2020-08-28T15:03:52.763+00:00

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!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,890 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,787 questions
{count} votes

Accepted answer
  1. Krish G 2,331 Reputation points
    2020-08-28T21:03:07.577+00:00

    @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.

    3 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.