Share via

AKS deployed application to access on-prem server

Santhi Dhanuskodi 365 Reputation points
2024-05-16T12:53:21.2833333+00:00

Hi,

I want to connect to on-prem sql server from a .net application which is deployed in AKS.

We already have Azure relay/hybrid connection setup for the same, but that requires azure app service. I am looking for options to connect from AKS deployed app, atleast forward sql operations to azure relay/hybrid Connection manager

Please provide solutions/suggestions.

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

Developer technologies | ASP.NET Core | Other

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,061 Reputation points
    2024-05-16T17:09:53.0433333+00:00

    Azure relay/hybrid not supported by containers as it requires support code (a tcp reverse proxy client) in the app service hosting. that is, its an app service feature only. there are samples of calling the hybrid connection directly, so in theory you could write the sqlserver reverse proxy client yourself and host in the container.

    https://github.com/Azure/azure-relay/tree/master/samples/hybrid-connections/dotnet

    you will probably need a more traditional vpn solution:

    https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways

    Was this answer helpful?


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.