Rob Kraft's Software Development Blog

Software Development Insights

How To Add Azure “Storage Emulator” to an Existing Azure Function Running on your Local Machine

Posted by robkraft on March 24, 2020

I created a new Azure Function App on my local machine in Visual Studio 2019 today.  One of the wizard steps gave me the option to use “Storage Emulator” for storage account and I decided to choose no storage.

StorageEmulator

That was a mistake because I also set my Azure Function App up to run based on a Timer Trigger, and in order to run it locally I need that Storage Emulator.

So I created another Visual Studio Azure Function App and chose the Storage Emulator so I could see what it generated differently, and to my surprise there were no additional dependencies, just one value that needs to be added to local.settings.json to make it work.

“Values”: {
“AzureWebJobsStorage”: “UseDevelopmentStorage=true”,

Once I replaced the empty string value for AzureWebJobsStorage with UseDevelopmentStorage=true, the app ran locally with no problems.

StorageEM2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: