ADF Self-Hosted Integration Runtime

Azure Data Factory Self-Hosted Integration Runtime: Setup, Troubleshooting, and Best Practices

Celestinfo Software Solutions Pvt. Ltd. • May 01, 2025

Quick answer: The self-hosted integration runtime (SHIR) lets Azure Data Factory connect to on-premises databases, private VNet resources, and endpoints that aren't publicly accessible. Install it on a Windows machine with network access to your data source, register it with your ADF instance using an authentication key, and create linked services that reference the SHIR. Copied data passes through the SHIR machine, so size the VM for your volumes. Each SHIR version expires a year after release, so keep auto-update on or upgrade on a schedule.

Last updated: October 2026

When You Need a Self-Hosted IR

Azure Data Factory's managed (Azure-hosted) integration runtime handles connections to cloud services with public endpoints, such as Azure SQL Database, Blob Storage and Snowflake. But plenty of enterprise data still lives behind firewalls. The self-hosted IR bridges that gap. You'll need one when connecting to:


Installation Requirements


The SHIR is Windows-only. There's no Linux installer. Here's what the machine needs:


RequirementMinimumRecommended (Production)
OS64-bit Windows 10 or 11, or Windows Server 2016, 2019, 2022 or 2025 (not a domain controller)Windows Server 2022 or 2025
.NET Framework4.7.24.8 or later
CPU4 cores8+ cores
RAM8 GB16+ GB
Disk80 GB freeSSD recommended
JavaJRE 11 (Microsoft OpenJDK 11 or Eclipse Temurin 11), only for Parquet, ORC or AvroJAVA_HOME set to the JDK folder
NetworkOutbound 443 to your factory's endpoint and the other destinations in the firewall table belowDedicated NIC for data traffic

Don't install the SHIR on a machine running other heavy workloads. It competes for CPU and memory during copy operations, and a resource-starved SHIR is the number one cause of slow data transfers.


Step-by-Step: Installing SHIR on a Windows VM


  1. Create the IR in ADF. Go to your Azure Data Factory portal → Manage → Integration runtimes → New → Self-Hosted. Give it a name and copy the authentication key (Key1 or Key2).
  2. Download the installer. Microsoft provides a direct download link on the IR creation page. Alternatively, download from the Microsoft Integration Runtime download center.
  3. Run the installer on your Windows VM. Accept the defaults; the service installs as "Microsoft Integration Runtime" and starts automatically.
  4. Register with your ADF. The installer prompts for the authentication key. Paste the key from step 1. The IR connects to Azure and shows as "Running" in the ADF portal within 1-2 minutes.
  5. Verify connectivity. In the IR Configuration Manager (runs on the SHIR machine), use "Diagnostics" to test connections to your on-premises data sources.

Building this out on your own stack? We build data platforms end to end: ingestion, transformation, orchestration, and the alerting that catches a broken load before your users find it. You get running pipelines and the runbook to operate them, not a reference architecture.

Book a platform call Data engineering services

Connecting to On-Premises SQL Server


With the SHIR installed and registered, create a linked service in ADF. If you're new to ADF pipelines, our pipeline creation guide covers the fundamentals.


JSON: SQL Server linked service (recommended version)
{
  "name": "OnPremSqlServer",
  "properties": {
    "type": "SqlServer",
    "typeProperties": {
      "server": "192.168.1.50",
      "database": "SalesDB",
      "encrypt": "mandatory",
      "trustServerCertificate": false,
      "authenticationType": "SQL",
      "userName": "adf_reader",
      "password": {
        "type": "AzureKeyVaultSecret",
        "store": { "referenceName": "CorpKeyVault", "type": "LinkedServiceReference" },
        "secretName": "adf-reader-password"
      }
    },
    "connectVia": {
      "referenceName": "MyOnPremSHIR",
      "type": "IntegrationRuntimeReference"
    }
  }
}

The connectVia section tells ADF to route this connection through your self-hosted IR instead of the Azure-managed IR. The example uses the SQL Server connector's recommended version, which takes server and database properties in place of the legacy version's connection string. Its encrypt setting defaults to mandatory, so an on-premises SQL Server with a self-signed certificate refuses the connection until the certificate is trusted or trustServerCertificate is set. The SHIR machine must be able to reach the SQL Server on port 1433 (or whatever port your SQL Server listens on).


For credentials, you have two options. You can store the password in the linked service, where the SHIR node encrypts it with Windows DPAPI, keeps it locally and synchronises it across nodes, or you can reference an Azure Key Vault secret, as the example does. Key Vault is the better choice for production, because it centralises credential management and supports rotation.


High Availability: Multi-Node Setup


A single SHIR node is a single point of failure. If that VM goes down for patching, your pipelines fail. For production, set up 2-4 SHIR nodes sharing the same authentication key. ADF automatically load-balances copy activities across available nodes and fails over if one node goes offline.


To add a node: install the SHIR software on a second Windows VM and register it with the same authentication key as the first node. ADF recognizes it as a secondary node within minutes. All nodes must have identical network access to your data sources.


Mapping data flows never run on a self-hosted IR, single or multi-node. They always run on an Azure integration runtime, so a SHIR's node count has no bearing on them. A multi-node SHIR also updates without downtime, while a single node has some downtime during auto-update.


Networking and Firewall Rules


The SHIR makes outbound connections only and never accepts inbound traffic. These are the outbound rules from Microsoft's documentation:


PortDestinationPurpose
443 (HTTPS){datafactory}.{region}.datafactory.azure.net (or *.frontend.clouddatahub.net for older factories)Connecting the SHIR to the Data Factory service; required
443 (HTTPS)*.servicebus.windows.netInteractive authoring (test connection, browse, preview); not needed with self-contained interactive authoring
443 (HTTPS)*.core.windows.netStaging data in Azure Blob or ADLS
443 (HTTPS)download.microsoft.comAuto-update downloads, only if auto-update is on
443 (HTTPS)Your Key Vault URLOnly if credentials are stored in Azure Key Vault
1433*.database.windows.netOnly when copying to or from Azure SQL Database or Azure Synapse Analytics
Source portYour on-premises data sourceDatabase connectivity, for example 1433 for SQL Server

If your organization uses a proxy server, configure it in the SHIR Configuration Manager under Settings → Proxy. There are three options: no proxy, the system proxy, or a custom proxy. With the system proxy, the SHIR reads its settings from both diahost.exe.config and diawp.exe.config, so update both files. A custom proxy needs an address and port, with an optional user name and password that the SHIR encrypts with DPAPI. For an NTLM proxy, Microsoft's guidance is to run the integration runtime host service under a domain account.


Performance Tuning


Remember: all copied data passes through the SHIR machine's network. If you're copying 100GB from on-premises SQL Server to Azure Blob Storage, that 100GB travels from SQL Server to the SHIR VM, then from the SHIR VM up to Azure. The SHIR's network bandwidth is your bottleneck.



Common Errors and Fixes


"The self-hosted integration runtime is offline"

This is the most common error. Causes, in order of likelihood:

  1. Firewall blocking outbound port 443 to your factory's endpoint. The FQDN is shown alongside the SHIR key; test it with Test-NetConnection -ComputerName <factory>.<region>.datafactory.azure.net -Port 443.
  2. SHIR version expired. Each version expires a year after release, and an expired SHIR shows an offline status and stops working. Install a current version.
  3. Authentication key regenerated. If someone regenerated the key, re-register the node with the current key from ADF → Manage → Integration runtimes.
  4. Windows service stopped. Check if "Microsoft Integration Runtime" service is running. Restart it.
  5. Proxy misconfiguration. If you recently changed proxy settings, the SHIR may fail to connect. Verify in Configuration Manager.

"Unable to connect to remote server"

This typically means the SHIR can't reach your on-premises data source. Check:


"Connection timed out" during copy

Usually a network bandwidth issue. The SHIR machine's NIC can't push data fast enough. Remedies: upgrade to a faster NIC, enable compression in the Copy Activity, or reduce the table size with a WHERE clause filter.


Upgrade Management


Microsoft releases a new SHIR version every month. Auto-update doesn't install every release. Microsoft pushes an auto-update every three months, using a stable version from the preceding three months, so an auto-updated node can be behind the latest download. You choose the time of day for the update, but the date is set by the service.


For tightly controlled environments, you can disable auto-update and manage upgrades manually. Each SHIR version expires one year after release. The ADF portal and the SHIR client show an expiry message 90 days beforehand, and an expired SHIR displays an offline status and stops working, so a manual process needs a scheduled upgrade. If you plan to move to Data Factory in Microsoft Fabric, which Microsoft describes as the next generation of ADF, its upgrade guide replaces SHIRs with on-premises data gateways. For teams building metadata-driven pipelines, see our REST API to Snowflake pipeline guide.


Key Takeaways


Chandra Sekhar, Senior ETL Engineer

Chandra Sekhar is a Senior ETL Engineer at CelestInfo specializing in Talend, Azure Data Factory, and building high-performance data integration pipelines.


Frequently Asked Questions

Q: When do I need a self-hosted integration runtime in ADF?

You need a self-hosted IR when connecting to on-premises databases (SQL Server, Oracle, MySQL), resources inside a private VNet without public endpoints, S3 buckets accessible only via VPN, or file shares on your corporate network. Any data source that isn't directly reachable from Azure's managed integration runtime requires a self-hosted IR.

Q: What are the hardware requirements for self-hosted IR?

Minimum: 64-bit Windows 10 or 11 or Windows Server 2016 or later, .NET Framework 4.7.2, 4 CPU cores, 8 GB RAM and 80 GB of disk, plus Java Runtime 11 if you copy Parquet, ORC or Avro. For production workloads, 8 or more cores, 16 GB or more of RAM and SSD storage are sensible. The machine needs outbound 443 to the factory's datafactory.azure.net endpoint, plus the endpoints your copies use.

Q: Why does my self-hosted IR show as offline?

Common causes are a firewall blocking outbound 443 to the factory's datafactory.azure.net endpoint, an expired SHIR version (each version expires a year after release), the Windows service being stopped, or proxy misconfiguration. Start by testing outbound connectivity, then check the Configuration Manager logs on the SHIR machine for specific error details.

Q: Does data flow through the self-hosted IR machine during copy operations?

Yes. The SHIR processes and transfers data on the machine where it runs. Copying 100GB from on-premises SQL Server to Azure means that traffic flows through the SHIR machine's network interface. The machine's bandwidth, CPU, and memory directly affect copy performance, so size the VM accordingly.

Related Articles

Burning Questions
About CelestInfo

Simple answers to make things clear.

Our AI insights are continuously trained on large datasets and validated by experts to ensure high accuracy.

Absolutely. CelestInfo supports integration with a wide range of industry-standard software and tools.

We implement enterprise-grade encryption, access controls, and regular audits to ensure your data is safe.

Insights are updated in real-time as new data becomes available.

We offer 24/7 support via chat, email, and dedicated account managers.

Still have questions?

Get Assistance

Ready? Let's Talk!

Get expert insights and answers tailored to yourbusiness requirements and transformation.

Get Assistance