I have a new dotnet 7 azure function app that I'd like to run in isolated mode with an Azure DevOps pipeline.
I can run the function locally on azurite no problem because I have a local.settings.json with: "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
Also, the function will run fine in Azure because the function app has the same as an Application Setting.
The problem comes when trying to run the function in a DevOps pipeline with the "func start" command. Because there is no local.settings.json (this is git-ignored to reduce chance of committing a file containing secrets) the pipeline throws the error:
Did not find functions with language [dotnet]
I would have hoped it would be possible to pass a param to func start to inform to run as dotnet-isolated but it seems the only close match is --dotnet-isolated-debug which is no good for my scenario: https://learn.microsoft.com/en-us/azure/azure-functions/functions-core-tools-reference?tabs=v2#func-start