# SonarQube tasks for Azure Pipelines

{% hint style="success" %}
Note that the [*Azure DevOps extension for SonarQube Cloud*](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) and the [*Azure DevOps extension for SonarQube Server*](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) are different extensions.

Although they share tasks which function in the same way, these extensions have unique software releases and version numbers. Please see the relevant links in case you're on the wrong page now:

* The [Azure DevOps extension for SonarQube Cloud](https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops) documentation
* The [Azure DevOps extension for SonarQube Server](https://docs.sonarsource.com/sonarqube-server/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops) documentation
  {% endhint %}

Examples of each SonarQube task described on this page can be found in code samples located on pages in this section of the docs. Select your project type from the pages listed on the [Azure Pipelines](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines.md) page, then read through the setup instructions to locate the example pipeline to reference.

## The Azure DevOps extension

The [Azure DevOps Extension](/sonarqube-server/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops.md) makes it easy to integrate analysis into your Azure build pipeline. The extension allows the analysis of all languages supported by SonarQube Server.

<details>

<summary>SonarScanner for Azure DevOps — 8.2.0 | <a href="https://sonarsource.atlassian.net/jira/software/c/projects/SONARAZDO/issues">Issue Tracker</a></summary>

**8.2.0** <sup><sub>**2026-03-16**<sub></sup>\ <sup>Bump Scanner for .NET 11.2.0.135473</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues?jql=project%20%3D%2010078%20AND%20fixversion%20%3D%20sq-8.2)

***

**8.1.0** <sup><sub>**2025-02-19**<sub></sup>\ <sup>Bump scanner for Dotnet to 11.1.0.132901 & Fix UI bug with SQC Service Connection</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues?jql=project%20%3D%2010078%20AND%20fixversion%20%3D%20sq-8.1)

***

**8.0.1** <sup><sub>**2025-12-10**<sub></sup>\ <sup>Rotation of binary signing keys</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues?jql=project%20%3D%2010078%20AND%20fixversion%20%3D%20sq-8.0.1)

***

**8.0.0** <sup><sub>**2025-12-08**<sub></sup>\ <sup>Update scanner for .NET to 11.0.0 and CLI to 8.0.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixversion%20%3D%20sq-8.0.0)

***

**7.4.2** <sup><sub>**2025-11-05**<sub></sup>\ <sup>Update marketplace documentation</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixversion%20%3D%20sq-7.4.2)

***

**7.4.1** <sup><sub>**2025-08-07**<sub></sup>\ <sup>Update tasks to Node 20+</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixversion%20%3D%20sq-7.4.1)

***

**7.3** <sup><sub>**2025-04-23**<sub></sup>\ <sup>Bump Scanner for .NET to 10.1.2.114627</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2018869)

***

**7.2** <sup><sub>**2025-04-09**<sub></sup>\ <sup>Bump Scanner for .NET to 10.1.0.110937</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016144)

***

**7.1.1** <sup><sub>**2024-11-26**<sub></sup>\ <sup>Bump Scanner for .NET to 9.0.2.104486</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016127)

***

**7.1.0** <sup><sub>**2024-11-19**<sub></sup>\ <sup>Align with SonarQube rebranding</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016109)

***

**7.0.4** <sup><sub>**2024-11-12**<sub></sup>\ <sup>Fix PR decorations for dark mode</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016079)

***

**7.0.3** <sup><sub>**2024-10-29**<sub></sup>\ <sup>Bump Scanner for .NET 9.0.1 & Fix missing translation messages</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016078)

***

**7.0.2** <sup><sub>**2024-10-22**<sub></sup>\ <sup>Fix windows path parsing coming from predefined variables correctly in extraProperties</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016073)

***

**7.0.1** <sup><sub>**2024-10-21**<sub></sup>\ <sup>Fix .NET Framework scanner embedding logic.</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2016068)

***

**7.0.0** <sup><sub>**2024-10-21**<sub></sup>\ <sup>.NET analysis defaults to Scanner for .NET v9 with multi-language analysis. Embeds scanner-CLI v6.2.1 with JRE auto-provisioning.</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015852)

***

**6.2.0** <sup><sub>**2024-07-01**<sub></sup>\ <sup>Default scanners are embedded for offline use</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015754)

***

**6.1.0** <sup><sub>**2024-06-18**<sub></sup>\ <sup>Scanner CLI now defaults to v6</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015740)

***

**6.0.1** <sup><sub>**2024-06-10**<sub></sup>\ <sup>Deprecate the old SonarQube v5 tasks with proper warnings</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015684)

***

**6.0.0** <sup><sub>**2024-05-31**<sub></sup>\ <sup>New V6 task with configurable scanner version, Drop of V3 tasks, bump of agent requirements for V4 tasks</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015492)

***

**5.20.0** <sup><sub>**2024-04-15**<sub></sup>\ <sup>Support for JDK 21 and Bump to Scanner for .NET 5.15.1 (fix for .NET 8 on MacOS)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015558)

***

**5.19.2** <sup><sub>**2024-03-11**<sub></sup>\ <sup>Ignore specified JDK 11 if SonarQube does not support it</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015528)

***

**5.19.1** <sup><sub>**2024-03-04**<sub></sup>\ <sup>Reintroduce compatibility for v4 tasks with node6</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015517)

***

**5.19.0** <sup><sub>**2024-01-24**<sub></sup>\ <sup>PRs show issues that will be fixed by the merge & Accepted, Retry mechanism during publish polling to tolerate unstable network conditions.</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015451)

***

**5.18.4** <sup><sub>**2023-11-28**<sub></sup>\ <sup>Bump MSBuild Scanner to 5.15</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015420)

***

**5.18.3** <sup><sub>**2023-11-20**<sub></sup>\ <sup>Maximize proxy compatibility with tasks <5.18.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015410)

***

**5.18.2** <sup><sub>**2023-11-17**<sub></sup>\ <sup>Adjust PR decorations to Clean Code Taxonomy, Migrate from request to node-fetch, Support Azure proxy, Fix vulnerabilities</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015395)

***

**5.17.2** <sup><sub>**2023-10-18**<sub></sup>\ <sup>Revert request library</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015355)

***

**5.16.0** <sup><sub>**2023-10-17**<sub></sup>\ <sup>Fix Mend vulnerabilities & Dependencies bump</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2015334)

***

**5.15.0** <sup><sub>**2023-06-14**<sub></sup>\ <sup>Fix computation and retrieval of report-task.txt + Let user choose which java version to use for analysis</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2014178)

***

**5.14.0** <sup><sub>**2023-06-13**<sub></sup>\ <sup>Improved support for SQ >= 10.0, Change computation of metadata file path, added detection of JAVA\_17 environment variable</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2014120)

***

**5.13.0** <sup><sub>**2023-04-27**<sub></sup>\ <sup>Support for sonar.token, incremental analysis outside Azure, better error message</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2014118)

***

**5.12.0** <sup><sub>**2023-03-17**<sub></sup>\ <sup>Supports for SonarCloud incremental analysis cache</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2014078)

***

**5.11.1** <sup><sub>**2023-02-02**<sub></sup>\ <sup>Azure DevOps extension is compatible with SonarQube 10.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2014042)

***

**5.11.0** <sup><sub>**2023-02-02**<sub></sup>\ <sup>Update scanner for .NET to 5.11.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2014040)

***

**5.10.0** <sup><sub>**2023-01-23**<sub></sup>\ <sup>Bump Scanner for .NET to 5.10.0 and ScannerCLI to 4.8.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2013846)

***

**5.9.0** <sup><sub>**2023-01-03**<sub></sup>\ <sup>Bump Scanner for .NET to 5.9.2</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2013846)

***

**5.8.1** <sup><sub>**2022-10-11**<sub></sup>\ <sup>Fix task status spelling (CANCEL -> CANCELED)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2013890)

***

**5.8.0** <sup><sub>**2022-09-05**<sub></sup>\ <sup>Bump Scanner for .NET to 5.8.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2013846)

***

**5.7.0** <sup><sub>**2022-08-09**<sub></sup>\ <sup>Bump Scanner for .NET to 5.7.2 and ScannerCLI to 4.7.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010078%20AND%20fixVersion%20%3D%2013813)

***

**5.6.1** <sup><sub>**2022-07-06**<sub></sup>\ <sup>Revert Scanner for .NET to 5.6.0 and ScannerCLi to 4.6.2</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10890)

***

**5.6.0** <sup><sub>**2022-07-05**<sub></sup>\ <sup>Bumped Scanner for .NET to 5.7.1 and Scanner CLI to 4.7.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10887)

***

**5.5.0** <sup><sub>**2022-06-15**<sub></sup>\ <sup>Bumped Scanner for .NET to 5.6.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10885)

***

**5.4.0** <sup><sub>**2022-02-16**<sub></sup>\ <sup>Bumped Scanner for .NET to 5.5.3</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10882)

***

**5.3.0** <sup><sub>**2022-02-07**<sub></sup>\ <sup>Bumped Scanner for .NET 5.5.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10878)

***

**5.2.0** <sup><sub>**2022-02-07**<sub></sup>\ <sup>Bump Scanner for .NET 5.4.1</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10877)

***

**5.1.1** <sup><sub>**2021-11-30**<sub></sup>\ <sup>Revert part of the change for SONARAZDO-264</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10874)

***

**5.1.0** <sup><sub>**2021-11-30**<sub></sup>\ <sup>Fix SSF-194, Bump Scanner for .NET 5.4.0</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10872)

***

**5.0.0** <sup><sub>**2021-09-28**<sub></sup>\ <sup>New Major Version for Azure Devops 2019 only, that resolves issues with LetsEncrypt Certs. For TFS2017/2018 use version 4.23.1</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10869)

***

**4.23.1** <sup><sub>**2021-10-08**<sub></sup>\ <sup>Rollback changes to Node handler and az pipeline task due to incompabilities with TFS 2017/2018</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10868)

***

**4.23** <sup><sub>**2021-10-01**<sub></sup>\ <sup>Change to Node10 execution handler to fix issues with LetEncrypt Certs</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10867)

***

**4.22** <sup><sub>**2021-09-20**<sub></sup>\ <sup>Updated plugin SDK from .NET Core 2 to .NET Core 3 + Bump SonarScanner for .NET v.5.3.1</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10865)

***

**4.21** <sup><sub>**2021-06-24**<sub></sup>\ <sup>Bump SonarScanner for .NET v.5.2.2</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10863)

***

**4.20** <sup><sub>**2021-04-30**<sub></sup>\ <sup>Bug fix + Bump SonarScanner for .NET and ScannerCLi versions</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10862)

***

**4.19** <sup><sub>**2021-04-09**<sub></sup>\ <sup>Support for Scanner for .NET 5.2 (Analyze test code)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10859)

***

**4.18** <sup><sub>**2021-03-09**<sub></sup>\ <sup>Support for .NET 5, support for solo .NET Core project (without .sln)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10858)

***

**4.17** <sup><sub>**2020-11-11**<sub></sup>\ <sup>Support for .NET 5, support for solo .NET Core project (without .sln)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10855)

***

**4.16** <sup><sub>**2020-11-10**<sub></sup>\ <sup>Support for .NET 5, support for solo .NET Core project (without .sln)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10852)

***

**4.12** <sup><sub>**2020-11-05**<sub></sup>\ <sup>Support for .NET 5, support for solo .NET Core project (without .sln)</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10851)

***

**4.11** <sup><sub>**2020-06-29**<sub></sup>\ <sup>Support FIPS compliant cryptographic algorithm, update to SonarScanner 4.4 and SonarScanner for MSBuild 4.10</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10847)

***

**4.10** <sup><sub>**2020-05-05**<sub></sup>\ <sup>Improve detection of duplicated coverage reports, update to SonarScanner 4.3 and SonarScanner for MSBuild 4.9</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10842)

***

**4.9** <sup><sub>**2020-01-29**<sub></sup>\ <sup>Enable scanner execution when only .NET Core 3 is installed, update to SonarScanner 4.2 and SonarScanner for MSBuild 4.8</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10841)

***

**4.8.1** <sup><sub>**2019-10-15**<sub></sup>\ <sup>Bug fix</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10840)

***

**4.8** <sup><sub>**2019-09-16**<sub></sup>\ <sup>Several bug fixes, update to SonarScanner 4.1 and SonarScanner for MSBuild 4.7.1</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10835)

***

**4.7.2** <sup><sub>**2019-08-14**<sub></sup>\ <sup>Bug fix</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10838)

***

**4.7.1** <sup><sub>**2019-08-14**<sub></sup>\ <sup>Bug fix</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10833)

***

**4.7** <sup><sub>**2019-08-13**<sub></sup>\ <sup>Fix a bug on the Publish Quality Gate Result task</sup>\
[Download](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube)\
\
[Release notes](https://sonarsource.atlassian.net/issues/?jql=project+%3D+10078+AND+fixVersion+%3D+10831)

</details>

For more information about customizing your Azure pipeline with the task inputs listed below, please see the [Using Azure DevOps extension's features](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/various-features.md) page.

## Prepare Analysis Configuration task <a href="#prepare-analysis-configuration" id="prepare-analysis-configuration"></a>

This task configures the required settings before executing the build. For .NET solutions or Java projects, it helps integrate seamlessly with MSBuild, Maven, and Gradle tasks.

The Prepare Analysis Configuration task shows up in your Azure pipeline as task: `SonarQubePrepare@X`

* where `X` = the current version of the [Azure DevOps Extension](/sonarqube-server/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops.md) for SonarQube Server.

{% hint style="info" %}
Properties passed via `extraProperties` should be written without any prefix, for example `sonar.verbose=true`. The task invokes the scanner on your behalf and handles the prefix internally. For a full explanation of prefix conventions when passing properties to the SonarScanner for .NET, see [Using the scanner](/sonarqube-server/analyzing-source-code/scanners/dotnet/using.md#passing-properties).
{% endhint %}

<details>

<summary>Task inputs common to all modes</summary>

The table below lists the **Prepare Analysis Configuration** task inputs common to all modes of the Azure DevOps extension for SonarQube Server.

<table><thead><tr><th width="185.98046875">Task input</th><th width="397.83984375">Description</th><th>Required in YAML file</th></tr></thead><tbody><tr><td><code>SonarQube</code></td><td>Name of the SonarQube service connection(s) (SonarQube Server Endpoint) to your Azure DevOps project. See <strong>Adding SonarQube Server service connection to Azure Pipelines</strong> in <a data-mention href="/pages/lzQvKrTMZKkGfrmkwLZs">/pages/lzQvKrTMZKkGfrmkwLZs</a>.</td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""></td></tr><tr><td><code>scannerMode</code></td><td><p>The running mode of the Azure DevOps extension for SonarQube Server.</p><p>Possible values:</p><p>• dotnet: .NET mode, for .NET projects.</p><p>• other: Maven / Gradle mode, for Maven and Gradle projects.</p><p>• cli: CLI mode, for other projects.</p></td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""></td></tr></tbody></table>

</details>

<details>

<summary>Task inputs specific to the Maven / Gradle mode</summary>

The table below lists the **Prepare Analysis Configuration** task inputs specific to the Maven / Gradle mode of the Azure DevOps extension for SonarQube Server.

<table><thead><tr><th width="185.96484375">Task input</th><th width="397.69921875">Description</th><th>Required in YAML file</th></tr></thead><tbody><tr><td><code>extraProperties</code></td><td><p>Additional sonar properties to be passed to the scanner. A property is defined through a [key, value] pair.</p><p><strong>Format</strong>: One [key, value] pair per line as follows:<br><code>&#x3C;key>=&#x3C;value></code><br>For example: <code>sonar.exclusions=**/*.bin</code></p></td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""> (to set the project key)</td></tr></tbody></table>

</details>

<details>

<summary>Task inputs specific to the .NET mode</summary>

The table below lists the **Prepare Analysis Configuration** task inputs specific to the .NET mode of the Azure DevOps extension for SonarQube Server. The **Corresponding sonar property** column indicates the sonar property that SonarQube Server will set with the input value. See the sonar property description in [Analysis parameters](/sonarqube-server/analyzing-source-code/analysis-parameters.md) for more information on the possible values and default-from-build values.

<table><thead><tr><th width="186.8125">Task input</th><th width="211.55078125">Description</th><th width="186.19140625">Corresponding sonar property</th><th>Required in YAML file</th></tr></thead><tbody><tr><td><code>projectKey</code></td><td><p>• If the project exists already in SonarQube Server (It is highly recommended to create your project first: see Creating your project): the project’s unique key (is displayed in SonarQube UI).</p><p>• If the project doesn’t exist yet in SonarQube Server, it will be created with this key. Allowed characters are letters, numbers, -, _, ., and :, with at least one non-digit.</p></td><td><code>sonar.projectKey</code></td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""></td></tr><tr><td><code>projectName</code></td><td><p>The name of the SonarQube Server project that will be displayed on the web interface.</p><p><strong>Default</strong>: <code>projectKey</code> input value (if no default-from-build value applies).</p></td><td><code>sonar.projectName</code></td><td><br></td></tr><tr><td><code>projectVersion</code></td><td>The version of the SonarQube Server project.</td><td><code>sonar.projectVersion</code></td><td><br></td></tr><tr><td><code>dotnetScannerVersion</code></td><td><p>The version of the SonarScanner for .NET to be downloaded. See <a data-mention href="/pages/i8VzZMdM9wV9TEdDzNi7">/pages/i8VzZMdM9wV9TEdDzNi7</a>.</p><p><strong>Default</strong>: The extension’s default version of the SonarScanner for .NET (the latest compatible version).</p></td><td><br></td><td><br></td></tr><tr><td><code>extraProperties</code></td><td><p>Additional sonar properties to be passed to the scanner. A property is defined through a [key, value] pair.</p><p><strong>Format</strong>: One [key, value] pair per line as follows:<br><code>&#x3C;key>=&#x3C;value></code><br>For example: <code>sonar.scanner.scanAll=false</code></p></td><td></td><td></td></tr></tbody></table>

</details>

<details>

<summary>Task inputs specific to the CLI mode</summary>

The table below lists the **Prepare Analysis Configuration** task inputs specific to the CLI mode of the Azure DevOps extension for SonarQube Server. The **Corresponding sonar property** column indicates the sonar property that SonarQube Server will set with the input value. See the sonar property description in [Analysis parameters](/sonarqube-server/analyzing-source-code/analysis-parameters.md) for more information on the possible values and default-from-build values.

<table><thead><tr><th width="186.26953125">Task input</th><th width="211.80859375">Description</th><th width="185.96484375">Corresponding sonar property</th><th>Required in YAML file</th></tr></thead><tbody><tr><td><code>cliSources</code></td><td><p>The path to the root directory containing source files. The path can be absolute, or relative to the repository root.</p><p><strong>Warning</strong>: The possible values are different from the <code>sonar.sources</code> property:</p><p>• You can only set a single path.</p><p>• The relative path must be relative to the repository root (and not the to the sonar.projectBaseDir property).</p><p>• If you want to set a list of paths, define instead sonar.sources in the extraProperties input or in sonar-project.properties (See Choosing your configuration mode)</p><p><strong>Default</strong>: <strong>.</strong></p></td><td><code>sonar.sources</code></td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""></td></tr><tr><td><code>configMode</code></td><td><p>Specifies the configuration mode.</p><p>Possible values:</p><p>• file (default): The configuration is stored in the file defined through the configFile input.</p><p>• manual: The configuration is defined through the extraProperties input.</p></td><td><br></td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""></td></tr><tr><td><code>cliScannerVersion</code></td><td><p>Version of the SonarScanner CLI to be downloaded. See <a data-mention href="/pages/i8VzZMdM9wV9TEdDzNi7">/pages/i8VzZMdM9wV9TEdDzNi7</a>.</p><p><strong>Default</strong>: The extension’s default version of the SonarScanner CLI (the last available version).</p></td><td><br></td><td><br></td></tr><tr><td><code>configFile</code></td><td><p>Is used if <code>configMode</code>is set to <code>file</code>.<br>The path to the file containing your analysis configuration. Path can be absolute or relative to the repository root.</p><p><strong>Default</strong>: sonar-project.properties</p></td><td><br></td><td><br></td></tr><tr><td><code>cliProjectKey</code></td><td><p>Is used if <code>configMode</code> is set to <code>manual</code>.</p><p>• If the project exists already in SonarQube Server (It is highly recommended to create your project first: see Creating your project): the project’s unique key (is displayed in SonarQube UI).</p><p>• If the project doesn’t exist yet in SonarQube Server, it will be created with this key. Allowed characters are letters, numbers, -, _, ., and :, with at least one non-digit.</p></td><td><code>sonar.projectKey</code></td><td><img src="/files/ZiBj9zoh19XZAtcFGn2D" alt=""></td></tr><tr><td><code>cliProjectName</code></td><td><p>Is used if <code>configMode</code> is set to <code>manual</code>.</p><p>The name of the SonarQube Server project that will be displayed on the web interface.</p><p><strong>Default</strong>: <code>cliProjectKey</code> input value (if no default-from-build value applies).</p></td><td><code>sonar.projectName</code></td><td><br></td></tr><tr><td><code>cliProjectVersion</code></td><td>Is used if <code>configMode</code> is set to <code>manual</code>.<br>The version of the SonarQube Server project.</td><td><code>sonar.projectVersion</code></td><td><br></td></tr><tr><td><code>extraProperties</code></td><td><p>Is used if <code>configMode</code> is set to <code>manual</code>.</p><p>Additional sonar properties to be passed to the scanner. A property is defined through a [key, value] pair.</p><p><strong>Format</strong>: One [key, value] pair per line as follows:<br><code>&#x3C;key>=&#x3C;value></code><br>For example: <code>sonar.exclusions=**/*.bin</code></p></td><td><br></td><td><br></td></tr></tbody></table>

</details>

## Run Code Analysis task <a href="#run-code-analysis" id="run-code-analysis"></a>

This task executes the analysis of the source code. It is not used in the Gradle / Maven mode of the Azure DevOps extension for SonarQube Server.

The Run Code Analysis task shows up in your Azure pipeline as task: `SonarQubeAnalyze@X`

* where `X` = the current version of the [Azure DevOps Extension](/sonarqube-server/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops.md) for SonarQube Server.

The table below lists the task inputs.

| Task input                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><code>jdkversion</code></p><p><br></p> | <p>The version of Java used by the scanner for analysis. See <a data-mention href="/pages/D6SF5hMgYghZKK2M4UM5">/pages/D6SF5hMgYghZKK2M4UM5</a>.</p><p>If you select a value other than JAVA\_HOME, the analyze task will revert to using JAVA\_HOME if the selected environment variable does not exist.</p><p>Possible values:</p><p>• JAVA\_HOME: Use the value of the JAVA\_HOME environment variable on the system.</p><p>• JAVA\_HOME\_17\_X64: Use the value of the JAVA\_HOME\_17\_X64 environment variable on the system, if available. This environment variable is already set when running on Microsoft-hosted agents.</p><p>• JAVA\_HOME\_21\_X64: Use the value of the JAVA\_HOME\_17\_X64 environment variable on the system. This environment variable is already set when running on Microsoft-hosted agents.</p><p><strong>Default</strong>: <code>JAVA\_HOME</code></p> |

## Publish Quality Gate Result task <a href="#publish-quality-gate-result" id="publish-quality-gate-result"></a>

This task allows you to report the quality gate status directly to your Azure Pipeline’s Build Summary page. It is not mandatory but highly recommended.

{% hint style="info" %}
The Publish Quality Gate Result task can significantly increase the overall build time because it will poll SonarQube until the analysis is complete.
{% endhint %}

The Publish Quality Gate Result task shows up in your Azure pipeline as task: `SonarQubePublish@X`

* where `X` = the current version of the [Azure DevOps Extension](/sonarqube-server/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops.md) for SonarQube Server.

The table below lists the task inputs.

| Task input          | Description                                                                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `pollingTimeoutSec` | <p>The maximum time (in seconds) for the task to wait for the analysis results sent by SonarQube Server.</p><p><strong>Default</strong>: 300</p> |

## Related pages <a href="#related-pages" id="related-pages"></a>

* [About Azure Pipelines integration](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/integration-overview.md)
* [Gradle or Maven project with Azure Pipelines](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/gradle-or-maven-project.md)
* [.NET project with Azure Pipelines](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/dotnet-project.md)
* [C family project with Azure Pipelines](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/c-family-project.md)
* [JS, TS, Go, Python, PHP, etc. project with Azure Pipelines](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/js-ts-go-python-php.md)
* [Using Azure DevOps extension's features](/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/various-features.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/analyzing-source-code/ci-integration/azure-pipelines/sonarqube-tasks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
