An Azure service that provides cloud messaging as a service and hybrid integration.
Thank you for reaching out to Microsoft Q&A.
The behavior you are experiencing is typically caused by intermittent instability in the communication path between Azure App Service, Azure Relay (Hybrid Connections), and your on‑premises endpoint. Even though the Hybrid Connection Manager (HCM) shows Connected, this only confirms that HCM has an outbound connection to Azure Relay over port 443; it does not guarantee that the full end‑to‑end TCP path (App Service → Azure Relay → backend server) is stable. Hybrid Connections rely on long‑lived outbound TLS/WebSocket connections on port 443, and any disruption in this path such as firewall/proxy interference, idle timeouts, TLS negotiation issues, or backend endpoint instability can cause frequent disconnections. Errors like “connection forcibly closed by remote host”, “pre-login handshake failed”, and socket timeouts are commonly observed when intermediate network devices terminate or reset these persistent connections. Additionally, recent infrastructure or security changes (for example, firewall rule updates, proxy changes, or TLS hardening) can introduce such behavior even if the setup was previously stable. Hybrid Connections works by brokering traffic through Azure Relay using outbound connections from both ends, so instability at any layer can result in the connection status flapping between Connected and Not Connected. [docs.azure.cn]
Refer below points to resolve this issue or this is the workaround
Verify outbound connectivity from HCM to Azure Relay
Run continuous connectivity tests from the HCM machine to ensure stable outbound access over port 443:
Test-NetConnection <namespace>.servicebus.windows.net -Port 443
If you observe intermittent failures, investigate WAN, firewall, or proxy issues as this indicates network instability.
Validate firewall/proxy configuration and avoid connection termination
Ensure that outbound HTTPS/WebSocket traffic to *.servicebus.windows.net is allowed and not intercepted. Disable SSL inspection if enabled and check for aggressive idle timeout policies, as these can terminate long‑running TCP connections required by Hybrid Connections.
Check recent changes in network, security, or OS updates
Since the issue started recently after stable operation, review any changes such as firewall rule updates, proxy modifications, TLS/cipher updates, or OS patching on the HCM host or backend servers, as these are common triggers for connection resets.
Validate backend endpoint stability from the HCM machine
Test connectivity directly from the HCM host to the backend to confirm the service is consistently reachable:
Test-NetConnection <backend-host> -Port <port>
If intermittent failures occur, the issue may be with the backend service or internal network rather than Azure.
Use Hybrid Connection Debug Utility to isolate the issue
Leverage the Hybrid Connection Debug Utility to simulate and trace traffic between App Service and your backend. This helps determine whether the issue lies in the relay path or the backend endpoint.
Validate DNS resolution and configuration
Ensure the Hybrid Connection endpoint is configured using a DNS hostname (not IP) and verify consistent resolution using tools like:
nslookup <hostname>
Hybrid Connections routing relies on DNS mapping, and inconsistencies can lead to connection failures. [docs.azure.cn]
Check for idle timeout or connection recycling in network appliances
If Azure Firewall, load balancer, or proxy is involved, review TCP idle timeout settings. Long‑running sessions can be dropped due to timeout or maintenance operations, which can interrupt Hybrid Connections.