Listener for Azure function was unable to start error while running Azure function app locally. How to solve this?

Souvik Sardar 16 Reputation points
2022-01-18T02:30:54.43+00:00

I have one Azure function app and I am trying to run that locally but getting the below error. I have the storage emulator up and running. My 10000 port is busy to do something so I changed the port of emulator from AzureStorageEmulator.exe.config file and started with admin mood. it started successfully.

My storage emulator is running on 12000,12001, 12002 respectively for blob, queue, table.
165882-storage.png

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? I am not sure why the listener is trying to find 10000 if I run locally from Visual Studio 2022

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.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.


1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    5 deleted comments

    Comments have been turned off. Learn more

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.