Reputation: 1406
I'm trying to getting Webjobs to run locally, with the Azure emulator, but it's generating an exception. I only found old posts (from early 2015) of saying the Azure emulator does not support local execution due to some unsupported Blob functionality. I wonder if this limitation is still valid or if there exists some workaround?
When running locally I'm creating the JobHostConfiguration as:
JobHostConfiguration config = new JobHostConfiguration();
config.StorageConnectionString = "UseDevelopmentStorage=true";
config.DashboardConnectionString = "UseDevelopmentStorage=true";
Upon initialization I get the following exception:
Unhandled Exception: System.InvalidOperationException:
Failed to validate Microsoft Azure WebJobs SDK Storage account.
Any idea of how to get WebJobs to execute locally? Any known work arounds? Thanks in advance.
Upvotes: 4
Views: 1125
Reputation: 3641
I wonder if this limitation is still valid or if there exists some workaround?
The short answer is yes. If you want to work with Webjobs, you need to interact with a valid storage account.
That doesn't mean that you can't execute them locally though. You can always stop your Webjob that's running in the cloud and run the same Webjob from your machine.
Upvotes: 2