Share via

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.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,661 Reputation points Microsoft Employee Moderator
    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>.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.