Skip to the page

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 answerSelf-Hosted Integration Runtime (SHIR) and Azure Integration Runtime (AIR) are key components of Azure Data Factory (ADF) and Azure Synapse Pipelines.

The full answer

Self-Hosted Integration Runtime (SHIR) and Azure Integration Runtime (AIR) are key components of Azure Data Factory (ADF) and Azure Synapse Pipelines. They differ in management, use cases, and security implications, impacting their appropriateness for various scenarios.


Azure Integration Runtime (AIR):

  • Managed by Microsoft:
    Microsoft handles all infrastructure tasks, including patching, scaling, and maintenance.

  • Fully Serverless:
    No infrastructure is required on your end. AIR provides seamless integration with Azure services.

  • Use Cases:

    • Connecting to cloud-based data stores such as Azure Blob Storage, Azure SQL Database, or Azure Cosmos DB.
    • Orchestrating data flows and transformations entirely within the Azure ecosystem.
  • Security Considerations:

    • Data transfer occurs over the public internet unless using private links.
    • Authentication is managed through Azure credentials and managed identities.
    • Microsoft ensures security of the underlying infrastructure.

Self-Hosted Integration Runtime (SHIR):

  • Managed by You:
    You are responsible for deploying, configuring, and maintaining the SHIR on your infrastructure (on-premises or in a VM in Azure).

  • Requires Infrastructure:
    SHIR needs a dedicated machine (physical or virtual) to host the runtime software.

  • Use Cases:

    • Connecting to on-premises data sources like SQL Server or file shares.
    • Accessing data in other clouds (e.g., AWS S3, GCP BigQuery).
    • Handling scenarios where data must remain within on-premises networks due to security or compliance.
  • Security Considerations:

    • You are responsible for securing the infrastructure hosting the SHIR (e.g., patching, antivirus, and firewalls).
    • Data transfers occur over your network, which may include the internet if connecting to external sources.
    • Credentials for accessing on-premises data are stored securely (encrypted) on the SHIR machine.
    • Firewall rules must be configured to allow communication between ADF and the SHIR.

Example Scenario:

A company has the following data sources:

  1. Azure Blob Storage: Contains raw data files.
  2. On-Premises SQL Server Database: Stores customer information.
  3. Salesforce: A cloud-based CRM system.
  • Using AIR:

    • For copying data from Azure Blob Storage to Azure Synapse Analytics, AIR is sufficient. ADF connects directly using Azure credentials without additional setup.
  • Using SHIR:

    • For copying data from the on-premises SQL Server to Azure Data Lake Storage Gen2, SHIR is required. SHIR connects to the SQL Server within the on-premises network and communicates with ADF.
    • For connecting to Salesforce, either AIR or SHIR could be used. With AIR, ADF connects to Salesforce over the public internet. With SHIR, the SHIR machine handles the connection, possibly through a secure VPN.

Comparison Table:

FeatureAzure Integration Runtime (AIR)Self-Hosted Integration Runtime (SHIR)
ManagementManaged by MicrosoftManaged by you
InfrastructureServerlessRequires a physical or virtual machine
Data SourcesCloud-basedOn-premises, other clouds, or restricted access
Security FocusAzure credential management, TLS encryptionInfrastructure, network, and credential security
ComplexityLowHigh
CostIncluded with ADF/SynapseVM, network, and maintenance costs

Security Implications:

  • Using AIR:

    • Ensure proper RBAC permissions for Azure resources.
    • Leverage private endpoints to secure data in transit.
    • Data is encrypted with TLS during transfer.
  • Using SHIR:

    • Secure the machine hosting the SHIR (e.g., patching, firewalls, and antivirus).
    • Configure network security to restrict data access within the organization.
    • Manage credentials securely on the SHIR machine.

Key Takeaways:

  • Choose AIR for simplicity and reduced management overhead when working with cloud-based data sources.
  • Opt for SHIR when accessing on-premises data, handling cross-cloud scenarios, or ensuring data stays within on-premises networks.
  • Carefully evaluate security requirements and implement appropriate measures for both AIR and SHIR.

By understanding the differences and security implications, you can make informed decisions about which integration runtime to use for your specific data integration scenarios.

Last updated 20 January 2025