There are two transport mechanisms for service bus
- AQMP over web sockets
The default is to use plain AQMP but this uses port 5671. Often times this port may be blocked by firewalls. You can switch over to using the websocket based version which uses port 443 - much more commonly open already on firewalls.
You just need to update the
TransportType in the service bus set up
var client = new ServiceBusClient(Configuration["ServiceBusConnection"], new ServiceBusClientOptions
The simplest way of getting websockets to work on functions is to update the connection string to mention it