How to launch multiple Azure Functions apps on different ports
Turns out setting up Hosts.LocalHostPort via local.settings.json doesn't work (consistently at least, I keep getting semi-random Value cannot be null. (Parameter 'provider') errors on function startup), contrary to what the documentation says. If you override the command line args directly, via a launchSettings.json , it works consistently and I even get faster startup ¯_ (ツ)_/¯:
1
{
2
"profiles": {
3
"api": {
4
"commandName": "Project",
5
"commandLineArgs": "start --port 7072"
6
}
7
}
8
}
Copied!
You might want to add a --pause-on-error in there too.
Last modified 1mo ago
Copy link