A common architecture places a cloud application in Azure App Service and a listener or Hybrid Connection Manager inside the network hosting the backend. The cloud application connects through Relay, while the on-premises component maintains outbound connectivity and reaches the internal API or configured TCP endpoint. App Service Hybrid Connections provides a managed integration for supported configurations; custom Hybrid Connections listeners give application code direct control over HTTP handling or stream processing.
Identity and secret management should follow the connection roles. Use Microsoft Entra identities and narrowly scoped Relay roles where supported. If SAS credentials are required, store them in Key Vault, separate Send and Listen permissions, and plan credential renewal and rotation. Instrument both sides with Azure Monitor-compatible telemetry and propagate correlation identifiers so engineers can distinguish Relay connectivity failures from backend application errors.
For virtual-network-hosted senders, Private Link can provide private endpoint access to the Relay namespace. Treat private DNS, public access restrictions, and listener egress as separate configuration tasks. Managed integrations such as Azure Machine Learning Kubernetes connectivity may also require trusted-service access settings; follow the integration-specific network requirements rather than assuming a private endpoint alone permits every required connection.
App Service
App Service Hybrid Connections uses Azure Relay to connect a supported app to a configured TCP hostname and port through Hybrid Connection Manager. For example, a web application can connect to an on-premises SQL Server endpoint without opening an inbound firewall port. This is endpoint-specific TCP connectivity, not a VPN or general-purpose network route, and support depends on the App Service operating system and plan.
Microsoft Entra ID (formerly Azure AD)
Hybrid Connections can use Microsoft Entra access tokens and Azure role-based access control to authorize senders and listeners. For example, a cloud application can use a managed identity with the Azure Relay Sender role while a separate backend identity receives the Azure Relay Listener role. Keep Relay connection authorization separate from authorization for the business operations carried over the connection.
Azure Key Vault
Applications using SAS authentication can store Relay credentials in Key Vault instead of embedding them in source code or deployment templates. For example, a listener can retrieve a Listen-only credential at startup through an identity authorized to read that secret. Credential rotation must include reloading secrets and renewing or reconnecting affected Relay sessions.
Azure Monitor
Use Azure Monitor for available Relay metrics and instrument sender and listener applications with Application Insights or OpenTelemetry. For example, alert on connection failures and correlate a cloud HTTP request with the listener's downstream database call. Carry an application correlation identifier across the relay boundary rather than assuming transport connectivity provides end-to-end tracing.
Azure Private Link
A Relay namespace can be accessed through a private endpoint for supported sender connectivity from a virtual network. For example, a virtual-network-hosted sender can resolve the namespace to a private IP address and connect without using its public endpoint. Configure private DNS and public-network restrictions deliberately, and test listener egress separately because sender-side Private Link does not make all connection paths private.
Azure Machine Learning
Azure Machine Learning Kubernetes integration uses Azure Relay for communication between the managed service and an attached Kubernetes cluster. For example, a cluster in a restricted network can participate in the supported Azure Machine Learning connection architecture without exposing an inbound service endpoint. Where required by that architecture, configure Relay's trusted Microsoft services access setting alongside the namespace firewall.
API Management
Azure Relay recognizes API Management as a trusted Microsoft service. With the trusted-service firewall exception enabled on a Relay namespace, supported API Management requests can reach the namespace without matching its IP allowlist.
Azure Analysis Services
Azure Relay carries traffic between Azure Analysis Services and the on-premises data gateway. For example, a model can refresh from an on-premises SQL Server through a connection the gateway opens outbound.
Azure Arc
Azure Relay provides Hybrid Connections for Azure Arc features such as SSH access to Arc-enabled servers and Cluster Connect for Arc-enabled Kubernetes. The Arc hybrid connectivity resource provider can create the connections and supply connection information to the Arc service that uses them.
Azure Blob Storage
Azure Relay can archive namespace resource logs to an Azure Storage account through an Azure Monitor diagnostic setting. The logs are written to blob containers, where they can be retained for later investigation.
Azure Data Explorer
Azure Relay lists Azure Data Explorer as a trusted Microsoft service. Enabling the trusted-service exception on a Relay namespace lets supported Azure Data Explorer traffic reach it without matching its IP firewall rules.
Azure Data Factory
Azure Relay provides the communication channel used by the Azure Data Factory self-hosted integration runtime for interactive authoring unless self-contained interactive authoring is enabled. For example, Data Factory can use that channel to ask the runtime to test a connection to an on-premises database.
Azure Database Migration Service
Azure Relay supports the control connection used by the self-hosted integration runtime in Azure Database Migration Service workflows that migrate SQL Server from local backup files. The runtime reads and uploads the backup files; Relay does not carry the backup data itself.
Azure Digital Twins
Azure Relay recognizes Azure Digital Twins as a trusted Microsoft service. The trusted-service exception lets supported Azure Digital Twins traffic bypass the Relay namespace's IP firewall without removing its authentication requirements.
Azure DNS
Azure Relay private endpoints can use the Azure Private DNS zone `privatelink.servicebus.windows.net`. With the zone linked to a virtual network, clients can resolve the Relay namespace hostname to the private endpoint's IP address.
Azure ExpressRoute
Azure Relay supports access from on-premises clients over ExpressRoute. With ExpressRoute private peering, clients can reach a Relay private endpoint in a connected virtual network without using the namespace's public endpoint.
Azure Functions
Azure Relay powers the App Service Hybrid Connections feature available to eligible Azure Functions apps. A function can use a Hybrid Connection to reach an on-premises TCP endpoint, such as a database, without exposing that endpoint to inbound internet traffic.
Azure Health Data Services
Azure Relay recognizes Azure Health Data Services as a trusted Microsoft service. When the trusted-service exception is enabled, supported requests from Azure Health Data Services can bypass the namespace firewall while still requiring authorization.
Azure IoT Central
Azure Relay includes Azure IoT Central in its trusted Microsoft services list. A namespace can allow supported IoT Central traffic through its firewall without adding IoT Central source addresses to the IP allowlist.
Azure IoT Hub
Azure Relay can grant Azure IoT Hub a trusted-service exception to a namespace's IP firewall. Supported IoT Hub requests still need authorization to access Relay resources.
Azure Kubernetes Service (AKS)
Azure Relay provides a bidirectional communication channel between Azure Machine Learning and an AKS cluster configured as Kubernetes compute. The Azure Machine Learning extension on the cluster uses this channel for service communication across network boundaries.
Azure Load Balancer
Azure Relay uses Azure Load Balancer in its WCF Relay gateway infrastructure. The load balancer routes an incoming listener registration to a Relay gateway node; customers do not provision a load balancer for the namespace.
Azure Policy
Azure Relay namespaces can be evaluated by Azure Policy using their `Microsoft.Relay/namespaces` resource properties. For example, a policy can audit namespaces that leave public network access enabled.
Azure portal
Azure Relay has dedicated management pages in the Azure portal for creating namespaces and relay endpoints, configuring access policies and network rules, and approving or rejecting private endpoint connections.
Azure Resource Manager
Azure Relay exposes namespaces, Hybrid Connections, WCF relays, authorization rules, and network rule sets as Azure Resource Manager resource types. An ARM template can deploy a namespace together with its endpoints and access configuration.
Azure role-based access control (Azure RBAC)
Azure Relay uses Azure RBAC to authorize Microsoft Entra principals through built-in roles such as Azure Relay Sender, Azure Relay Listener, and Azure Relay Owner. An application can be granted permission to send to a relay without being allowed to listen on it.
Azure Stream Analytics
Azure Relay recognizes Azure Stream Analytics as a trusted Microsoft service. Enabling the trusted-service exception lets supported Stream Analytics traffic pass the namespace's IP firewall without adding source IP addresses to the allowlist.
Azure Synapse Analytics
Azure Relay supports interactive authoring for Synapse pipelines that use a self-hosted integration runtime, such as testing a connection to an on-premises data source. Relay also recognizes Synapse Analytics in its trusted Microsoft services firewall setting.
Azure Virtual Network
Azure Relay can expose a namespace through a private endpoint with an IP address from an Azure Virtual Network subnet. Workloads can reach that specific namespace over the private endpoint rather than its public IP address.
Event Grid
Azure Relay Hybrid Connections can receive events as an Event Grid subscription destination. An on-premises listener can consume the events through its outbound connection to Relay without exposing a public webhook.
Event Hubs
Azure Relay can stream namespace resource logs to Event Hubs through an Azure Monitor diagnostic setting. Downstream consumers can then process Relay connection activity as it arrives.
Logic Apps
Azure Relay carries requests and responses between Logic Apps managed connectors and the on-premises data gateway. For example, a workflow can query an internal SQL Server through the gateway without opening an inbound firewall port.
Microsoft Fabric
Azure Relay provides the communication channel used by the on-premises data gateway for supported Microsoft Fabric workloads. For example, Fabric can refresh a semantic model from an on-premises source through the gateway's outbound Relay connection.
Microsoft Purview
Azure Relay supports interactive operations for Microsoft Purview's self-hosted integration runtime, such as testing a connection to a source on a private network. Relay can also admit supported Purview traffic through Hybrid Connections provisioned by Azure Arc when trusted-service access is enabled.
Power BI Embedded
Azure Relay carries traffic for the on-premises data gateway when a report in Power BI Embedded uses a semantic model connected to an internal data source. For example, the gateway can relay DirectQuery requests to an on-premises SQL Server without exposing the server publicly.