I am running Azure Function locally on an Ubuntu machine using VSCode Azure Function Extension.
I created a local function, which runs on the default port 7071
.
When checking the the log however, I notice the following message indicating that another port is being used
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 POST http://127.0.0.1:34447/AzureFunctionsRpcMessages.FunctionRpc/EventStream application/grpc
The port used here 34447
keeps changing every time I run my function. It seems that the ports selected are in the range 3xxxx
to range 4xxxx
.
I am wondering how is the port is being selected? Is it customizable?