SonarQube in Azure DevOps wtih Microsoft Hosted Agent

Versions: 8.4
Trying to achieve: Analysing from Azure DevOps Task
So far tried:

As our SonarQube instance was not accessible over internet, I am getting the below error in “Prepare analysis on SonarQube” task during the analysis of a java project.

[SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ENOTFOUND”,“errno”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“”,“host”:“”,“port”:443}

Some links suggests to install agent service (from Deployment Pool section) will solve this issue. Will it really solve this issue? In that case we need to do it for multiple organization.

So anyone please let me know what will be the proper solution for this issue.

Hi, your Azure agent needs to access SonarQube. There is no way around this, you need to find a solution to let this agent access SQ (using a proxy, moving applications on your network, etc).

How to use Proxy?

We have some resource on the SonarQube documentation about that. Hope that helps.