How to connect azure container instances to on premise SQL Servers

Justin Nix 0 Reputation points
2023-01-31T01:08:29.23+00:00

Hi I was wondering what services and infrastructure would be required in order to allow Azure container instances to connect to our on premise sql servers.

E.g on-premise data gateway, private link, azure vpn gateway?
The use case/ scenario for this is that we are wanting to spin-up containers running DBT within them and allowing dbt to execute sql commands against our on premise databases.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
757 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2023-01-31T01:56:08.4233333+00:00

    Hello @Justin Nix,

    Just sharing some initial thoughts, how about exploring the option of deploying Container Instances in a VNET
    

    https://learn.microsoft.com/en-us/azure/container-instances/container-instances-vnet

    Then that particular container in the VNET can communicate with on premise sql servers either through VPN Gateway (https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways)

    Or Azure Express Route: https://learn.microsoft.com/en-us/azure/expressroute/expressroute-introduction

    Regards,

    Shiva.

    0 comments No comments

  2. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2023-01-31T02:26:28.9633333+00:00

    You can deploy an Azure Container instance, into a Virtual Network - that is linked to your on-premises environment.

    You can setup a Site to Site VPN from on-premises to your Azure, using a VPN Gateway, Local Gateway and Azure Virtual Network, and for DNS resolution you can use a domain controller on-premises or in azure or Azure Private DNS resolver.

    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.