# SonarQube Connection Issues With Azure Devops Integration

**URL:** <https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687>\
**Category:** SonarQube Server / Community Build\
**Tags:** azuredevops-server\
**Created:** [August 28, 2019, 2:38pm UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687 "2019-08-28T14:38:36Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 28, 2019, 2:38pm UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/1 "2019-08-28T14:38:36Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this

Hi All

We are getting the below error messages while integrating Sonarqube with Azure Devops and the exact error message is  
##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ETIMEDOUT”,“errno”:“ETIMEDOUT”,“syscall”:“connect”,“address”:"\*\*\*\*",“port”:9000}

Please can you suggest what needs to be done here as we are using the latest community edition on EC2 instance hosted on aws with proper set of ingress rules allowed for AZD ip ranges.

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [August 29, 2019, 6:57am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/2 "2019-08-29T06:57:15Z")

</div>

Hi,

Have you tried to ping with a simple bash/cmdline your AzDO server from the SQ server ? Is that working ?

Thanks.

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 29, 2019, 7:21am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/3 "2019-08-29T07:21:48Z")

</div>

Hi Michael  
Yes i tried pinging the ip address for azure devops url after doing nslookup on the server and the result were positive for the ping with 0 packets of data loss.

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [August 29, 2019, 8:14am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/4 "2019-08-29T08:14:30Z")

</div>

Are you using Azure DevOps Server (OnPrem) or Services (Cloud) ?

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 29, 2019, 8:15am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/5 "2019-08-29T08:15:22Z")

</div>

We are using the cloud version .

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [August 29, 2019, 8:16am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/6 "2019-08-29T08:16:47Z")

</div>

Ok, so that’s normal.

SonarQube can work only with other OnPrem CI tools (Azure DevOps Server).

If you want to use Azure DevOps Services (cloud), you have to use SonarCloud instead.

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 29, 2019, 8:29am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/7 "2019-08-29T08:29:00Z")

</div>

So is there no alternate way to use sonar with Azure devops Service with the aws hosted sonarqube community edition.

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [August 29, 2019, 9:03am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/8 "2019-08-29T09:03:20Z")

</div>

Since you can’t authorize Azure DevOps Service to communicate (=open port) with an OnPrem server, no.

And on Sonar side, we officially split the 2 worlds : On-Prem with SonarQube and cloud with SonarCloud.

Mickaël

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 29, 2019, 9:08am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/9 "2019-08-29T09:08:39Z")

</div>

Thanks Let me have a word with my team internally .  
Will this work with older community versions ?

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 30, 2019, 7:23am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/10 "2019-08-30T07:23:34Z")

</div>

Is this possible that through a workaround we can make it work with azure devops hosted in cloud with sonarqube hosted in aws ec2 ?

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 30, 2019, 8:07am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/11 "2019-08-30T08:07:34Z")

</div>

@mickaelcaro is there any document which i can refer to where i can go through the strategy suggested by you of sonar cloud with azd cloud .

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [August 30, 2019, 8:18am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/12 "2019-08-30T08:18:42Z")

</div>

Our corporate website says it pretty well [https://www.sonarsource.com/](https://www.sonarsource.com/)

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [August 30, 2019, 9:55am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/14 "2019-08-30T09:55:52Z")

</div>

@mickaelcaro i found a workaround to get that issue sorted out and start the connectivity between cloud and on premise instances.

---

<div class="post-metadata">

**Author:** ![Rob\_Bos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rob_bos/32/6100_2.png) [@Rob\_Bos](https://community.sonarsource.com/u/Rob_Bos)\
**Post date:** [August 31, 2019, 5:37am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/15 "2019-08-31T05:37:33Z")

</div>

How did you work around it then?

---

<div class="post-metadata">

**Author:** ![onlyabhi52](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onlyabhi52/32/5921_2.png) [@onlyabhi52](https://community.sonarsource.com/u/onlyabhi52)\
**Post date:** [September 2, 2019, 5:56am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/16 "2019-09-02T05:56:29Z")

</div>

@Rob_Bos i opened the data center ip ranges for azure on 9000 port and it worked

---

<div class="post-metadata">

**Author:** ![marc-bouvier](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marc-bouvier/32/6163_2.png) [@marc-bouvier](https://community.sonarsource.com/u/marc-bouvier)\
**Post date:** [September 4, 2019, 9:06am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/17 "2019-09-04T09:06:34Z")

</div>

If the problem is the analysis, you can run sonarqube analysis on a self hosted azure devops agent. Since you are hosting it, it will be able to contact your sonarqube instance.

See here for more details : [https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops](https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops)

---

<div class="post-metadata">

**Author:** ![onebeatconsumer](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/onebeatconsumer/32/16509_2.png) [@onebeatconsumer](https://community.sonarsource.com/u/onebeatconsumer)\
**Post date:** [October 30, 2020, 9:34pm UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/18 "2020-10-30T21:34:25Z")

</div>

You can authorize Azure DevOps Service to work with on-prem assets (ex. build agents directly which ping/pull from inside, or through a VPN pipe connection to something self-hosted).

All our systems are FedRAMP High and SonarCloud requires source code on your SaaS infrastructure.

1. Is SonarCloud hosted in a FedRAMP High infrastructure (ex. GovCloud, or Azure Government, or your own certified)?

2. If not, how is data at rest protected?

3. Does SonarCloud do anything with code other than its analysis (ex. gather/resell data or analytics similar to google and facebook, etc.)?

4. Does Sonar have any intention of enabling a SonarQube instance for the Azure DevOps Service?

If not, we cannot use your product.

---

<div class="post-metadata">

**Author:** ![Mark\_Clements](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mark_clements/32/9651_2.png) [@Mark\_Clements](https://community.sonarsource.com/u/Mark_Clements)\
**Post date:** [November 2, 2020, 8:12am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/21 "2020-11-02T08:12:15Z")

</div>

Hello Trey,

Thank you for your interest in SonarCloud.

To answer some of your questions:

1. No, although some of the AWS services are certified, such as Secrets Manager.
2. No, it does not. We make this clear in the T&Cs.
3. Yes.

If you would like to discuss Q2 further please can you use the contact page: [https://sonarcloud.io/contact](https://sonarcloud.io/contact)

Kind regards,  
Mark Clements

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [November 9, 2020, 8:12am UTC](https://community.sonarsource.com/t/sonarqube-connection-issues-with-azure-devops-integration/13687/22 "2020-11-09T08:12:31Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
