0

We're looking for a way to run a Docker container that needs a connection to an On-Premise database. This was previously done using a Hybrid Connection with a Web App.

Does Azure Container Instances (suppose running on Windows) support Hybrid Connections similar to Web Apps?

Ziad Akiki
  • 103
  • 3

2 Answers2

2

Yes you can, you need to deploy your container group into a VNet that has access to a VPN or ExpressRoute connection to your on premises systems.

More details can be found here:

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

At the time of writing, keep note this is only generally available in a small set of regions and in preview in others. Also take note of some of the other configuration limitations. Though I expect these will change over time.

Alex Moore
  • 1,704
  • 5
  • 12
  • 1
    What I like about the Hybrid Connection is that I don't have to deal with complex firewall rules and related issues, I think VNets are not as easy to setup as a Hybrid Cnx – Ziad Akiki Apr 18 '20 at 09:27
  • 1
    At this time this is the only approach to achieve a hybrid connection with ACI, not clear if they will release HCM support for ACI – Alex Moore Apr 18 '20 at 18:20
1

Windows containers in web apps do not support hybrid connection.

As Alex stated the only way to achieve this will be with ACI on a vNet and connecting to on prem through Express Route or VPN. This will only be possible with Linux containers, Windows ACI does not support vNet join.

Sam Cogan
  • 38,736
  • 6
  • 78
  • 114