How to get Azure Data Factory connecting to your data on a VNet (or internal network)

Azure Data Factory (ADF) is a great tool as part of your cloud based ETL tool set. However not all your data is necessarily accessible from the public internet. These instruction go through the steps required to allow ADF access to your internal or VNet data-sets.

For ADF, we need to set up and configure an Integration Runtime service (formally called the Data Management Gateway) behind the firewall. This will then provide the secure communication and transfer of data between your ADF and your internal data sources.

1. Setting up the Azure Data Factory Integration Runtime

From your Azure Data Factory in the Edit

  1. Select Connections on the left hand menu at the bottom
  2. On the right hand side select the ‘Integration Runtimes’ tab
  3. Click the ‘+ New’
  4. Select ‘Perform data movement and dispatch activities to external computes.’ option.
  5. Then select ‘Private Network’
  6. Then give it a name and description
  7. Once the new Runtime is created, then you will be shown the Authentication Keys. You will need one of these for the next steps so take a copy of at least one of them.
  8. Now download the ‘Azure Data Factory Integration Runtime’ onto the server it will be installed on from the link on the screen or
  9. You will now need to install this on a server inside your network or VNet. The server you install it on must be able to connect to the desired data sources.
    You can install this service on more than one server to create a resilient high availability cluster, but I won’t go through that now.
    For this demo, I have decided to install it onto the SQL Server itself.
  10. Once installed you’ll be asked to enter one of the Authentication Keys you copied earlier. This enables the Integration Runtime instance to register itself with your Azure Data Factory service.

  11. You can now test a connection to your database using either Basic or Azure Key Vault

2. Create a Linked Service in Azure Data Factory

  1. Create a new Linked Service by clicking on the  ‘+ New’ under on the ‘Connections’ -> ‘Linked Services’ tab.
  2. Now select the type of service you want to connect to behind your firewall. In my case it’s a self hosted MS SQL Server.
  3. Give it a name and make sure you select the new Integration Runtime you created earlier.
  4. Enter the credentials and test the connection to ensure all is working well.
  5. You can now create your Datasets and Pipelines using this Linked Service in the normal way. Schema discovery and data previews should be available too. You just need to select the new Linked service in the ‘Connection’ tab.


More Information

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.