I have tried this and I get the following error
Port 7071 is unavailable. Close the process using that port, or specify another port using --port [-p].
There are various fixes for this to run the second function on a different port which I think work on pre .net 5 but they do not work on .net 5
Any ideas please?