1

With .NET Core the WebJobs are now a console application.

The new Azure Storage Emulator is Azurite.

The Visual Studio documentation about the azurite mentions only how to setup the start of azurite in Azure Functions and ASP.NET projects.

Is there a way to automatically start Azurite, when debugging a WebJobs 3 project in Visual Studio 2022?

sschoof
  • 1,531
  • 1
  • 17
  • 24

1 Answers1

1

As mentioned in the given MSDoc

Azurite is automatically available with Visual Studio 2022.

AFAIK, for .NET Console Apps(Azure Web Jobs), there is no option to run the Azurite Automatically. We need to start it manually from the Command Prompt.

Check whether azurite.exe is available in the mentioned path.

C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator\

enter image description here

  • If you find the .exe file, then run the executable file enter image description here

enter image description here

My App.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
    </startup>
  <appSettings>
    <add key ="StorageConnection" value="UseDevelopmentStorage=true"/>
  </appSettings>
</configuration>
Harshitha
  • 3,784
  • 2
  • 4
  • 9