Home / Setup SonarQube Server on Azure VM

Setup SonarQube Server on Azure VM

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

    Deploy to Azure

    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.

  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 to provision a project on your Azure DevOps Organization.

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

    dns_name

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

    Username= admin, Password= admin