Sonarqube 8.9 LTS : Azure DevOps Task Prepare For Code Analysis fails behind proxy

Sonarqube 8.9 LTS : Azure DevOps Task Prepare For Code Analysis fails behind proxy.
We seeing the following error on our hosted build agents behind proxy :
##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ECONNRESET”}

We have setup HTTP_PROXY and HTTPS_PROXY as environment variables pointing to the proxy server , However we are still seeing the error.

In addition we can reach the sonarqube url hosted by us from the build agents using a browser with the same proxy configurations.

Can you please help
Thanks