How to setup GitHub + Azure + SonarCloud

Our organization has the following setup:

  1. Our repos are located in GitHub
  2. Pull-requests are managed in GitHub
  3. Our builds run in Azure Pipelines
  4. Deployments are run from Azure Pipelines
  5. We use SonarCloud.io for static Code Analysis (auto-integration)
  6. Our SonarCloud.io Organisation and Repos are connected to GitHub

How can I add SonarCloud.io Code Scanning to my Azure build pipeline so that we can get more information about for example Code Coverage?

I can find examples to connect your private SonarQube Server to Azure using Microsoft Entra, but not when using SonarCloud.

The SonarCloud Documentation states:

  1. In your Azure DevOps project, go to Project Settings > Service connections.
  2. Select New service connection and then select SonarQube Cloud from the service connection list.

But the SonarQube Cloud connection type is not in the list on Azure.

Thank you for your help!

References:

Found the answer.

  1. Install the SonarSource Market place Extension for Azure.
  2. Choose your correct Azure organization to install the extension into.
  3. Then when configuring Service connections in Azure Project Settings you get the SonarQube Server connection option.
  4. Enter https://sonarcloud.io as the Sonar Qube server address en off you go!

Visual Studio Marketplace - SonarQube Server Extension

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