How to fix Azure Functions Runtime is unreachable?

Bartosz Sulima 0 Reputation points
2023-11-11T23:54:38.6333333+00:00

Hello, I've noticed yesterday that my Azure functions from region North Europe stopped working. I use Azure API management, and when testing the endpoint it smply returns "503 Site Unavailable" with body stating "The service is unavailable.". The Function App overview page looks fine (Status: Running and all functions are "Enabled"). First issues can be spoted when I try to test specific functions (going through Function App overview page -> Function page -> "Code + Test"), instead of code I see an error "Azure Functions Runtime is unreachable.Learn more".
I've tried steps suggested here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-recover-storage-account, but my storage seems just fine. I've tried to restart whole Function App, and deploy functions (I deploy using vscode), but deploy fails trying to sync triggers, as You can see below:

12:06:48 AM app-test: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
12:07:03 AM app-test: Syncing triggers...
12:07:09 AM app-test: Syncing triggers (Attempt 2/6)...
12:07:21 AM app-test: Syncing triggers (Attempt 3/6)...
12:07:42 AM app-test: Syncing triggers (Attempt 4/6)...
12:08:24 AM app-test: Syncing triggers (Attempt 5/6)...
12:09:44 AM app-test: Syncing triggers (Attempt 6/6)...
12:09:46 AM: Error: Encountered an error (ServiceUnavailable) from host runtime.

I've tried deployment on Function App in other region (West Europe) and it works just fine. As far as I can tell its connected to ongoing maintenance, "Routine Planned Maintenance in Progress for App Service in North Europe", tracking id NVZH-FPZ. My concern is that it's almost 24h since the error first occured. Is there anything I can do to fix it?

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

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-11-16T04:12:56.78+00:00

    @Bartosz Sulima Thanks for getting back. I'm glad to hear that the issue is resolved. Thanks for posting your solution so that others experiencing the same thing can easily reference this. Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.
    .
    Issue:
    You are getting the error Error: Azure Functions Runtime is unreachable.
    .
    Resolution:
    You re-deployed your azure function app code and that fixed the issue.
    .
    Thanks for sharing the feedback on NVZH-FPZ service health alert event. If you want the error description Azure App Service application(s) may have seen a brief drop in connectivity for a few seconds to be improvised then, I would suggest you to please share the feedback directly with our Product group team and they will take this forward:
    .

    Here is the Link: https://feedback.azure.com/d365community/forum/3887dc70-2025-ec11-b6e6-000d3a4f09d0

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    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.