you may refer this article
https://github.com/microsoft/spring-cloud-azure/issues/638
please accept answer if issue resolve
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to connect to the Azure Service Bus Messaging Queue via a Proxy Server. I use the Stream Binder lib in my Spring application
pom.xml:
...
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-cloud-azure-servicebus-queue-stream-binder</artifactId>
<version>1.2.8</version>
</dependency>
...
application.yml
...
spring.cloud.azure.servicebus.connection-string: Endpoint=sb://examplehost.servicebus.windows.net/...
spring.cloud.stream.bindings.input.destination: somedestination
spring.cloud.stream.servicebus.queue.bindings.input.consumer.checkpoint-mode: MANUAL
...
I have tried to provide HTTP and SOCKS proxy settings via command line arguments, but this does not seem to work. Is it possible to provide a SOCKS or HTTP Proxy for the connection to "examplehost.servicebus.windows.net" ?
you may refer this article
https://github.com/microsoft/spring-cloud-azure/issues/638
please accept answer if issue resolve
Not exactly sure about why proxy is in the picture of your scenario since both Azure Spring cloud application and Service bus would be in Azure environment. If by any chance, you meant your app is not Azure hosted and behind a proxy, then you might want to have look at
https://spring.io/guides/gs/routing-and-filtering/
https://stackoverflow.com/questions/30168113/spring-boot-behind-a-network-proxy