Introduction
In this article, we will discuss how to setup Azure Data Factory with Managed Virtual Network. Azure Data Factory (ADF) is a code free Extract-Load-Transform (ELT) and orchestration service. This PaaS service enables data engineers to create and monitor a data pipeline that can do data ingestion and data transformation. In order to keep all the data movements secure, Azure Data Factory provides an option to run the computes in a dedicated Virtual Network for your instance of Data Factory.
Challenges
In our previous article, we created a private endpoint for our data lake. Now, our data engineers need to start developing data pipelines to generate insight for the business teams. The data team has decided to use the Azure Data Factory and we need to configure it to be safe and secure.
The primary reasons we need to deploy the Data Factory with Managed Virtual Network are to keep the network traffic private and protect against data exfiltration. The Pros and Cons of the Managed Virtual Network are:
Pros
- This network is managed by Azure and it does not require additional overhead from the Data Platform admin team.
- A private endpoint can be created with the Managed Virtual Network. This will limit the networking traffic to the private network.
Cons
- The ability to test connection to other services and debugging require the compute to be started. Traditionally, a stand-by compute is available from Azure which results in a faster respond time.
- Since the compute is dedicated to the network, it requires more planning and pipeline design to ensure the compute can be used by multiple processes.
- Since we are using Private Endpoint, additional cost will be incurred for ingress and egress.
Create a new Azure Data Factory
In this tutorial, we will create a new Azure Data Factory for our new tutorial project called "project1". To better organize our projects, a new resource group 'sandbox-dataPlatform-project1' is created. We will be creating the new Data Factory under this resource group.
Create Data Factory - Basics
Select the resource group 'sandbox-dataPlatform-project1' and enter in the Data Factory name 'sb-dp-adf-project1', then click 'Next: Git configuration >' to continue.

Create Data Factory - Git configuration
We are going to skip the git setup in this tutorial as we will cover this topic in another article. For an actual project, I highly recommend you setup this integration now.
After selecting 'Configure Git later', click 'Next: Networking >' to continue.

Create Data Factory - Networking
In Data Factory, the compute and the orchestrator are called Integration Runtime (IR). An AutoResolveIntegrationRuntime is created as part of the Data Factory deployment. The 'AutoResolve' means this Integration runtime will automatically detect the best region to use based on the destination location.
We want to enable 'Managed Virtual network' and connect via 'Private endpoint'. This will ensure our integration runtime runs in a separate Virtual Network and using Private IP. Click 'Next: Advanced >' to continue.

Create Data Factory - Advanced
In this tab, we can specify a custom encryption key. In our case, we will let Microsoft manage this so no change is required. Click 'Next: Tags >' to continue.
Create Data Factory - Tags
Let's create the tags required for cost management. This data factory is created for a specific project, so we will assign the cost-center to 'project1'. Click on 'Next: Review + create >' to confirm the settings and proceed to creating our Data Factory.

Azure Data Factory Studio
The 'project1' Data Factory is created, we need to setup a private endpoint to our data lake.
To do this, we need to open the Azure Data Factory Studio,
- Navigate to the 'project1' Data Factory.
- Select 'Overview' and click on 'Open Azure Data Factory Studio' link.
- The ADF Studio will open up in a separate browser tab.

Create an Integration runtime with Interactive Authoring
Unfortunately, we cannot use the Integration Runtime created by our Data Factory because it will not allow us to enable 'Interactive Authoring' with the Managed Virtual network is enabled.










Join the conversation! Your thoughts help the community grow.