question

AndrewFraser-2188 avatar image
0 Votes"
AndrewFraser-2188 asked LemLi-3760 edited

'Azure Functions runtime is unreachable' When Configuring Data Gateway For Linux based App Service B1:1

Hi,

I would like to know if Hybrid Connection is supported on Linux B1:1.

I have deployed the standard 'Azure Function' C# Project template to a Linux Function App and have tested that the code works and returns a name when passed a name in the query string.

However, as soon as I add a Hybrid Connection under Networking (even before connecting it) the function goes down and does not work upon restart, with the error 'Azure Functions runtime is unreachable'.

I am able to deploy to a Windows B1:1 and the function remains available.

I've checked that this is not a delay issue by waiting overnight, and restarting multiple times.

The issue remains whether I connect the Hybrid Connection to the on premise endpoint or not.

Has anyone else struck this ? I thought Hybrid Connection was GA on Linux since 2020 ?

Regards

Andrew

azure-functionsazure-webapps-hybrid-connection
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AndrewFraser-2188 I don't see any limitation in our document as such for Azure function Linux App. Can you run the Diagnose and solve problem to see if it provide more details why your Azure Functions runtime is unreachable. You can also navigate to application insights logs to verify if there was any issue/exception that causes Azure Function runtime issue. If you cannot find the cause of the issue please share detail in my private comment.

0 Votes 0 ·

1 Answer

LemLi-3760 avatar image
0 Votes"
LemLi-3760 answered LemLi-3760 edited

I'm able to reproduce this issue with the following steps:

Linux dedicated app service plan

  1. Create a function app (by default, the port of the function app is :80).

  2. Add a Hybrid Connection to the function app that also references port :80.

  3. Startup the function app.

  4. It fails to start and the runtime service is unreachable.


The solution ended up being the addition of a configuration setting to the function app service itself called PORT with a value of :8080. Then the service was able to startup and become responsive and work as intended along with the hybrid connection remaining on port :80.

Couldn't find any docs about this behavior either.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.