Run Multiple Azure .net 5.0 Functions

Dave Amour 1 Reputation point
2021-08-10T07:19:47.223+00:00

I am trying to run my solution with multiple startup projects some of which are Azure Functions in .net 5.0

I get this error

Port 7071 is unavailable. Close the process using that port, or specify another port using --port [-p].

This is a known issue pre .net 5.0 and there are many suggested fixes but they do not work for for .net 5.0 Functions

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,678 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,611 Reputation points Microsoft Employee
    2021-08-24T11:56:44.877+00:00

    @Dave Amour You could define different ports either by setting the Host.LocalHttpPort property in local.settings.json or setting the command arguments in the debug configuration to start --port <port>.

    0 comments No comments