A. From Azure DevOps, create a service endpoint.
B. From SonarQube, obtain an authentication token.
C. From Azure DevOps, modify the build definition.
D. From SonarQube, create a project.
Explanation:
The first thing to do is to declare your SonarQube server as a service endpoint in your VSTS/DevOps project settings.
References: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Extension+for+vsts-TFS