SonarQube integration with AzureDevops

SonarQube version 4.36.0.
Deployed via Azure DevOps Pipeline, task : Prepare Analysis Configuration , task version : 4

I am trying to Integrate SonarQube in my application, however my pipeline (Specifically the Build task for SonarQube is failing)
The error I am getting is :
##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ETIMEDOUT”,“errno”:“ETIMEDOUT”,

The issue is, When I am using Azure DevOps Self Hosted agents, the task builds successfully. But when i use Self Hosted agent, The tasks fails throwing this error.
I Cant use Azure DevOps self hosted agent and hence need to know how can i run the same using Self Agent.

Hey there.

I’m not sure where you’re getting this version number from. The version of your SonarQUbe instance should be located in the footer of your instance.