API GET ‘/api/server/version’ failed, error was: {“code”:“ETIMEDOUT”,“errno”:“ETIMEDOUT”,“syscall”:

Sonar check is a part of Azure devops build pipeline and sonar server is installed on Azure VM that is created inside ER VNET. We are using Azure Hosted Agent to build the pipeline. However, “Prepare analysis on SonarQube” task fails with below error.

##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ETIMEDOUT”,“errno”:“ETIMEDOUT”,“syscall”:“connect”,“address”:“x.x.x.x”,“port”:9000}

Please help.

Does this agent have access to the SonarQube server? That bit isn’t clear to me when you say: