Skip to content

Latest commit

 

History

History

sonarqube-arm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
title layout sidebar permalink folder
Setup SonarQube Server on Azure VM
page
vsts2
/labs/vstsextend/sonarqube/sonarqube-arm/
/labs/vstsextend/sonarqube/sonarqube-arm/

Setup SonarQube Server on Azure VM

  1. Click the Deploy To Azure button below to provision SonarQube Server on Azure VM.

    Deploy to Azure{:target="_blank"}

    CustomDeployAzure1

    Provide the following parameters as shown.

    Parameter Name Description
    Subscription Details Choose the active Azure subscription, create a new resource group along with the location of creation
    SQ_VM_App Name Name of the VM where SonarQube will be installed
    SQ_Public IP_DNS Pefix unique DNS name to be provided with the following pattern:- ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will throw an error. For ex: sonarqubedns
    SQ VM_App Admin_User Name Local admin account for the SonarQube VM
    SQ VM_App Admin_User Password Password for the SonarQube VM
    SQ DB_Admin_User Name Admin account for Azure SQL Server
    SQ DB_Admin_Password Password for Azure SQL Server
    SQ DB_DBEdition Choose Standard as the Azure SQL database edition
  2. After providing all of the required values in the above table, check the Terms & Conditions checkbox and click on the Purchase button.

    {% include important.html content= "The deployment in Azure can take up to 20 minutes. At the end of the deployment, SonarQube will be configured to run as a Windows Service on the SonarQube VM. When the SonarQube service starts for the first time, it will configure its database. This can take an additional 15 minutes  to complete during which time the Azure deployment shows as completed but you still won't be able to reach the SonarQube home page. Please give SonarQube some time to update. Click here{:target="_blank"} for more information." %}

  3. Once the deployment is successful, you will see the resources in Azure Portal.

    azure_resources

  4. RDP into the machine and download Java JDK 8 from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.

    • To enable the file download on Internet Explorer, follow the below steps on the browser :
      • Click Tools and then Internet options.
      • Click on the security tab.
      • Select the Internet Zone
      • Click on the Custom Level Button and then scroll down to Download
      • Make sure to enable File download
      • Click Apply and OK
      • Restart Internet Explorer and check if that helps.
  5. Install JDK by the following the wizard.

  6. Start the SonarQube service by typing below command in command line

    net start SonarQube
    
  7. Use the Azure DevOps Demo Generator{:target="_blank"} to provision a project on your Azure DevOps Organization.

  8. Access the SonarQube portal providing the DNS name suffixed by the port number.

    {% include important.html content= "The default port for SonarQube is 9000. Copy the DNS name from the created Virtual Machine in Azure Portal as shown and append :9000 at the end. The final SonarQube URL will be http://YOUR_DNS_NAME:9000" %}

    dns_name

  9. Open a browser and login to the SonarQube Portal using the following credentials-

    Username= admin, Password= admin