Skip to the page
Tecyfy

Azure interview question · medium

Self-hosted Integration Runtime (SHIR) vs. Azure Integration Runtime (AIR). When is each appropriate, and what are the security implications?

The short answerUse the Azure integration runtime for data stores reachable from Azure (cloud services and public endpoints), and a self-hosted integration runtime for anything inside a private network, such as on-premises databases or stores behind a firewall.

The full answer

Use the Azure integration runtime for data stores reachable from Azure (cloud services and public endpoints), and a self-hosted integration runtime for anything inside a private network, such as on-premises databases or stores behind a firewall. The security difference is who runs the machine and which network the data travels through.

Azure integration runtime

  • Managed by Microsoft: no machines to patch or scale; it runs copy activities between cloud stores and mapping data flows.
  • Networking: by default it connects over public endpoints with TLS. Created inside a managed virtual network, it reaches stores through managed private endpoints, so traffic stays on the Microsoft network and stores can block public access.
  • Credentials: linked service credentials are encrypted by the service, or better, kept in Azure Key Vault and read with the factory's managed identity.

Self-hosted integration runtime

  • Managed by you: installed on Windows machines on premises or in a virtual network; you patch them, size them, and add up to several nodes for high availability and throughput.
  • Use it for: on-premises SQL Server, Oracle or file shares; stores in a private virtual network or another cloud's private network; sources that allow access only from known IP addresses.
  • Networking: it makes outbound HTTPS (port 443) connections to Azure; no inbound firewall ports are needed. Data moves from the source through the runtime machine to the destination.
  • Security duties: harden and patch the machines, restrict who can log on, keep credentials in Key Vault, and keep the runtime version current.
Azure IRSelf-hosted IR
Who runs itMicrosoftYou
ReachesPublic and private-endpoint cloud storesPrivate networks, on premises
Network pathMicrosoft network or public endpoints with TLSOutbound 443 from your network
Your security workAccess policies, private endpointsPlus machine hardening and patching
CostCharged per activity run and data movementLower activity rates, plus your machines

Example

  • Blob Storage to Synapse: Azure IR, in a managed virtual network if both stores use private endpoints.
  • On-premises SQL Server to ADLS Gen2: self-hosted IR on a server that can reach SQL Server.
  • Salesforce: Azure IR over its public API, unless policy requires traffic to leave from your network.

Data Factory in Microsoft Fabric uses the same idea, with an on-premises data gateway in place of the self-hosted runtime.

Last updated 16 October 2026

Asked next