Does anyone know if there’s a simple, recommended way to always background start/stop Azurite using a temp directory when F5 debugging in VS Code, like Visual Studio proper does, maybe through the launch.json? I have the Azurite installed, so I can manually start the service and it works, but I find all of the __*__
files in my project directory to be really annoying. Not to mention the Azurite: Clean
command never cleans everything due to file-level locks. My environment is up to date and currently as follows:
- OS: Windows 11 23H2 (OS Build 22631.3527)
- VS Code: 1.89.1 (w/ Azure, Azure Functions and Azurite extensions)
- Azure Function Core Tools: 4.0.5700
- Model: dotnet-isolated
- Language: C#
- local.settings.json contains "AzureWebJobsStorage": "UseDevelopmentStorage=true"
2
Answers
This has been annoying me for years and I finally found an answer after digging into the Azure Functions issue log and finding Issue 3876. Until something is done to resolve this, the simple fix is to replace
with this
I have followed below steps to create a .NET8 Isolated Blob Trigger Azure function and able to run the function without running the Azurite manually, also could avoid creating extra
(__*__)
files.Azure Functions: Create Function
.Use Azurite Emulator for local storage
.The function gets created successfully.
local.settings.json:
Output:
Folder Structure: