LoginSignup
2
0

More than 3 years have passed since last update.

"Port 7071 is unavailable"の対処方法

Posted at

 事象

Visual StudioでFunction Appを起動したときに、

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

というエラーが発生して、Function Appが動かない。

原因

ポート7071が既に使われている等で、利用することができない。

Visual Studioを2つ起動して、Function Appを2つ動かしたいときとか。

対処方法

  1. local.settings.jsonで、ポート番号を指定する。
  "Host": {
    "LocalHttpPort":  7072
  }

例:

image.png

  1. プロジェクトのプロパティ > デバッグにある、アプリケーション引数にhost start --pause-on-errorを追加する。

image.png

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0