Hybrid Connection Manager from Linux App Service

Mike 6 Reputation points
2021-10-13T15:34:20.46+00:00

I have a .NET 5.0 application that can connect and query from a Windows App Service just fine but when deployed to a Linux App Service the query times out. The application runs fine, my authentication code to Azure AD functions, top menu renders etc but when the application attempts to create the DB connection, it times out.

The HCM shows connected on both the App Service and on-prem sides.

Is there anything different that needs to be done either in the Azure setup or .NET 5.0 code for a HCM on a Linux Azure App Service?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2021-10-14T05:17:38.317+00:00

    Hi @Mike ,

    Thanks for bringing this to our attention. That's odd behavior. Can you please share the exact error message you are getting? Does your host have outbound access to Azure on port 443?

    Based on this doc, if your status says Connected but your app cannot reach your endpoint then:

    • Make sure you're using a DNS name in your Hybrid Connection. If you use an IP address then the required client DNS lookup may not happen. If the client running in your web app doesn't do a DNS lookup, then the Hybrid Connection will not work
    • Check that the DNS name used in your Hybrid Connection can resolve from the HCM host. Check the resolution using nslookup EndpointDNSname where EndpointDNSname is an exact match to what is used in your Hybrid Connection definition.
    • Test access from your HCM host to your endpoint using the PowerShell command Test-NetConnection EndpointDNSname -P Port If you cannot reach the endpoint from your HCM host then check firewalls between the two hosts including any host-based firewalls on the destination host.

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    --If the reply is helpful, please Upvote and Accept as answer--


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.