Access internal SonarQube from Azure DevOps hosted agents

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension):

SonarQube 8.0 (build 29455), SonarScanner for MSBuild 4.7.1, SonarQubePrepare 4.8.0, SonarQubeAnalyze 4.8.0, SonarQubePublish 4.8.1

  • what are you trying to achieve:

We are trying to publish analysis results to our SonarQube Server in our internal Azure Cloud. However, when we try to access our SonarQube from the hosted agent during the build we receive “[error][SQ] API GET ‘/api/server/version’ failed”. Is there any way to open our SonarQube to the scanner call without exposing the web portal to the internet?

I guess we could also whitelist the ip ranges from the hosted agents. Has anyone here tried something like this?

As it turns out, me and my colleague just talked at cross-purposes and he is content with exposing our internal SonarQube server to the internet as long as we forbid anonmyous calls as descibed here by @simon.brandhof .

This question can be closed now.