Run Multiple Azure .net 5.0 Functions

Dave Amour 1 Reputation point

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,382 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee

    @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