Learn. Build. Secure. Automate. Accelerate with AI. Live Training • Hands-On Labs • Expert Mentorship by Coach AK Contact: +1 (469) 733-5248 | devops.coaching@gmail.com
Free live webinar • November 21, 2026 • 9:30 AM CST Register free →
★2017–2027Celebrating Our 10th Year
Transform Your Career. Engineer Your Future.
Build the skills to become an AI-Enabled DevSecOps & Cloud Engineer with 15 weeks of live training, hands-on labs and personal mentorship.
How to Setup SonarQube on a Virtual Machine in Azure Cloud | Install SonarQube on Ubuntu 24.0.4 Virtual Machine in Azure Cloud
SonarQube is one of the popular static code analysis tools. SonarQube enables developers to write cleaner, safer code. SonarQube is open-source, Java based tool. SonarQube uses database for storing analysis results. Database can be MS SQL, Oracle or PostgreSQL. We will use PostgreSQL as it is open source as well.
SonarQube Architecture:
SonarQube have three components namely
1. Scanner - This contains scanner and analyser to scan application code.
2. SonarQube server - contains Webserver(UI) and search server
3. DB server - used for storing the analysis reports.
Watch steps in YouTube channel:
Please find steps for installing SonarQube on Ubuntu 24.0.4 in Azure Cloud. Make sure port 9000 is opened in firewall rules.
Click here to learn How to setup Virtual Machine in Azure cloud.
How to open port 9000 in Azure VM?
1. Select VM, under Settings--> choose Network
2. Click on Add inbound security role
3. Make sure you add entries like below: 9000 as Destination port ranges TCP as protocol 310 as priority number port_9000 as Name
4. Click on Add, once you add it should be like below:
Pre-requisites:
Instance should have at least 4 GB RAM. Make sure port 9000 is opened as port 9000 is default port for SonarQube.
Make sure below is taken care off.
Login to instance where you will be installing SonarQube, perform the below command:
sudo vi /etc/sysctl.conf
Add the following lines to the bottom of that file:
vm.max_map_count=262144 fs.file-max=65536
To make sure changes are getting into effect:
sudo sysctl -p
Change Host Name to SonarQube sudo hostnamectl set-hostname SonarQube
Perform System update
sudo apt update
Install Docker-Compose
sudo apt install docker-compose -y
Create docker-compose.yml
this yml has all configuration for installing both SonarQube and Postgresql:
sudo vi docker-compose.yml
(Copy the entire content high lighted below in yellow color)
No comments:
Post a Comment