I have one Azure function app. I am trying to run that locally but getting the below error. I have the storage emulator up and running. Storage emulator status
I am not sure why it is complaining about 10000 port because my storage emulator is running on 12000,12001, 12002 respectively for blob, queue, table.
Local host file is like below,
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet"
}
}
Getting the below error at runtime. Can you pls guide me how the issue can be solved to run the function app locally?
The listener for function 'ABCFunction' was unable to start. Azure.Core: Retry failed after 6 tries. Retry settings can be adjusted in ClientOptions.Retry. (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)) (No connection could be made because the target machine actively refused it. (127.0.0.1:10000)). Azure.Core: No connection could be made because the target machine actively refused it. (127.0.0.1:10000). System.Net.Http: No connection could be made because the target machine actively refused it.
I am also facing the same issue.
I can fix this by using below steps:
Make sure you run your Storage Emulator with Admin privileges. Which was already mentioned by @ Thiago Custodio.
Killing the Function process & host process in the task manager
Now I can able to run the azure function without issue: