Search code examples
c#sslazureservicebus

Is HTTPS supported with ConnectivityMode.Http on the Azure Servicebus


I am trying to use ConnectivityMode.Http in a WCF Webservice to open a connection to the Azure servicebus relay using SSL (HTTPS). The connection appears to default to HTTP.

Is HTTPS supported from the WCF listener to the relaybus?

Thanks Anthony


Solution

  • When you are using SSL connection to set the connectivity mode at the AppDomain-level through the static ServiceBusEnvironment class you should be using TCP instead of HTTP as with TCP you can use port 9351 for SSL connection as described in Service Bus Bindings:

    • Tcp : Services create TCP connections with the relay service through port 9351 (SSL).
    • Http : Services create an HTTP connection with the relay service making it easier to work around TCP port constraints.

    Here is a list of supported Service Bus Port Settings.