# Azure Devops Code Analysis step error

**URL:** <https://community.sonarsource.com/t/azure-devops-code-analysis-step-error/9576>\
**Category:** SonarQube Server / Community Build\
**Tags:** scanner\
**Created:** [May 9, 2019, 12:30pm UTC](https://community.sonarsource.com/t/azure-devops-code-analysis-step-error/9576 "2019-05-09T12:30:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gfischer](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@gfischer](https://community.sonarsource.com/u/gfischer)\
**Post date:** [May 9, 2019, 12:30pm UTC](https://community.sonarsource.com/t/azure-devops-code-analysis-step-error/9576/1 "2019-05-09T12:30:12Z")

</div>

Hi,  
I’m trying to integrate Sonar in our Azure Devops builds. I installed the extension and added the three steps as described in the docs. The scanner does it thing as it looks like, but ends with the following error (full log attached) [16.txt](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/a/a97cc5f81badd653e86184587cf199ccb9d930e3.txt) (23.5 KB)

```auto
##[error]ERROR: Error during SonarQube Scanner execution

ERROR: Error during SonarQube Scanner execution

##[error]ERROR: main component does not belong to specified organization

ERROR:

ERROR: main component does not belong to specified organization

ERROR:

##[error]The SonarQube Scanner did not complete successfully

The SonarQube Scanner did not complete successfully

##[error]12:16:01.528 Post-processing failed. Exit code: 1

12:16:01.528 Post-processing failed. Exit code: 1

##[error]d:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.6.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1

##[section]Finishing: Run Code Analysis

```

---

<div class="post-metadata">

**Author:** ![gfischer](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@gfischer](https://community.sonarsource.com/u/gfischer)\
**Post date:** [May 9, 2019, 2:14pm UTC](https://community.sonarsource.com/t/azure-devops-code-analysis-step-error/9576/2 "2019-05-09T14:14:11Z")

</div>

Ok, figured out the reason: don’t use the SonarQube extension when you target SonarCloud 😉
