AKS deployed application to access on-prem server

Santhi Dhanuskodi 325 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.

Developer technologies ASP.NET ASP.NET Core
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.
2,447 questions
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    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


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.