Hi, problem during running time trigger function

sanset 0 Reputation points
2024-07-25T17:41:41.1433333+00:00

So I'm running an Azure TimeTrigger Function on a consumption on azure portal with stack: node.js

I'm facing this error during runtime: "exception Azure.RequestFailedException: An attempt was made to access a socket in a way forbidden by its access permissions. (127.0.0.1:10000)"

I newbie in azure clouds, can you help me what is the problem?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,095 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,610 Reputation points Microsoft Employee
    2024-07-26T11:10:16.19+00:00

    Hello @sanset

    It seems like the error message is related to the local emulator for Azure Storage. The error message indicates that the function is trying to access a socket on the local machine, which is not allowed.

    To resolve this issue, you can try the following steps:

    1. Stop the local emulator for Azure Storage if it is running.
    2. Check the connection string for the Azure Storage account that the function is using. Make sure that it is pointing to the correct account and that the account is accessible.
    3. Restart the function app and see if the issue is resolved. If the issue persists, you can try running the function app on a different port. To do this, you can add an environment variable named AzureWebJobsStorage to the function app settings with the value UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://127.0.0.1:. Apply the port number that is not being used by any other application on your machine.

    I hope this helps

    0 comments No comments

Your answer

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