Lately my VS2022 (17.2.x) Azure Functions projects started failing to run locally. The local console had errors related to not being able to start any of the Timer Triggers.

The errors were of below format.:

The listener for function 'function name' was unable to start. Azure.Storage.Blobs: Service request failed.

- https://codeconfig.in

This error is related to Azurite (the local Azure Functions runtime environment). The version of Azurite used by VS2022 is causing the problem. I was able to fix the issue by:

Closing Visual Studio

Installing the latest version of Azurite globally npm install -g azurite

Open Azure Storage Explorer and delete the azure-webjobs-hosts blob container associated with the local emulator.

- https://codeconfig.in

Restart Visual Studio, run the Azure Functions project and the timer triggers are all good again.

- https://codeconfig.in

Leave a Reply

Your email address will not be published. Required fields are marked *

Explore More

How to get the nuget cache folder location programmatically

While programming if I need to get from a .NET app (not .NET Core app) the list of directories where NuGet stores its packages. Let’s see how to do this.

How can I clear the NuGet package cache using the command line?

You can do this using Visual Studio menu on UI or by using command. You have two ways to do this. Let’s check: First Option: Let’s move with first option,

Get TFS to ignore NuGet packages folder

We have to tell both NuGet and TFS to ignore the packages, because NuGet is trying to do source-control related stuff that it absolutely shouldn’t be doing. So, you have