Forum Discussion

RogerMassey's avatar
RogerMassey
Copper Contributor
Mar 24, 2023

Azure VPN Connection

Greetings - 

 

I don't know if this is possible in Azure, but I figured I would try as all the classes I have taken don't have an answer. I am new to Azure networking so what I want to do may not be possible. 

I have created an Azure VPN to our client. We have a SQL server there we pull data from there for reporting. I am trying to create an endpoint in Azure Data Factory to connect automatically over that VPN to run the reports. I have tried private links and PL Service but it looks like it can only be done in internal networks and not the gateway that the VPN is on. 

Any help would be appreciated. 

 

Thank you. 

  • shankerhari's avatar
    shankerhari
    Copper Contributor
    For your scenario, since you already have an Azure VPN set up with the client and you are trying to connect to a SQL server to pull data for reporting purposes, you can use a Self-hosted Integration Runtime installed on a machine that has access to the SQL server over the VPN. The Self-hosted Integration Runtime can securely connect to Azure Data Factory through the internet, and you can use it to create an endpoint in Azure Data Factory to connect to the SQL server and pull data for your reports.

    To set up the Self-hosted Integration Runtime, you need to download and install the Integration Runtime on a machine that has connectivity to the data sources you want to use in your data integration pipelines. Once installed, you can configure the Integration Runtime to connect to the Azure Data Factory service and register it with the service.

    After registering the Self-hosted Integration Runtime with Azure Data Factory, you can use it to create data integration pipelines that can connect to your SQL server and pull data for your reporting needs.
  • LukeJMadden's avatar
    LukeJMadden
    Brass Contributor
    It is possible to connect to a SQL Server in Azure through a VPN using Azure Data Factory. However, you may need to configure additional settings to ensure the VPN and Azure Data Factory are properly connected.

    One option to consider is using a Virtual Network (VNet) integration for your Azure Data Factory. This would allow your Data Factory to access resources within your VPN. You can follow the steps outlined in this Azure documentation to set up VNet integration: https://docs.microsoft.com/en-us/azure/data-factory/create-azure-integration-runtime#virtual-network-vnet-integration

    Another option is to create a self-hosted integration runtime (IR) within your VPN. This would allow your Data Factory to access your SQL Server and other resources within your VPN. You can follow the steps outlined in this Azure documentation to set up a self-hosted IR: https://docs.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime

    In both cases, it's important to ensure that the necessary ports are open within your VPN to allow communication between Azure Data Factory and your SQL Server. You may need to work with your network administrator to ensure that the necessary firewall rules are in place.
  • Would you share internal IPs of the systems involved? I am not exactly clear, where you want to pull reports from and how.

    A few basic questions that pop into my mind:
    Before checking on data connections, have you tried some ping and traceroute commands to confirm, that you have connectivity and if not, where it ends?
    Did you modify necessary NSG to allow communication?
    What is the Azure VPN configuration and the "Client VPN" configuration? Did you talk to the network team if routing and internal network segmentation could be an issue?

Resources