0% found this document useful (0 votes)
32 views2 pages

Ex03 - Installing Jenkins On Azure Cloud

This document provides steps to install Jenkins on Azure cloud. It describes creating a virtual machine in Azure, installing Java and Jenkins, and configuring Jenkins. It allows setting up Jenkins as a CI/CD automation server in Azure.

Uploaded by

Manjula Devi.K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Ex03 - Installing Jenkins On Azure Cloud

This document provides steps to install Jenkins on Azure cloud. It describes creating a virtual machine in Azure, installing Java and Jenkins, and configuring Jenkins. It allows setting up Jenkins as a CI/CD automation server in Azure.

Uploaded by

Manjula Devi.K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab Manual: Installing Jenkins on Azure Cloud

Objective:
The objective of this lab is to guide you through the process of installing Jenkins on the
Azure cloud platform.

Prerequisites:
- An active Microsoft Azure account
- Basic familiarity with Azure Portal
- Understanding of virtual machines and networking concepts

Lab Steps:

1. Sign in to Azure Portal:


- Open your web browser and navigate to the [Azure Portal](https://portal.azure.com/).
- Sign in using your Azure account credentials.

2. Create a Virtual Machine:


- Click on Create a resource.
- Search for Virtual machine and select it.
- Click Create and fill in the required details:
- Subscription: Select your subscription.
- Resource group: Create a new one or use an existing one.
- Virtual machine name: Provide a name for your Jenkins VM.
- Region: Choose the region closest to your location.
- Image: Select an Ubuntu Server or any other preferred Linux distribution.
- Size: Choose an appropriate VM size based on your requirements.
- Authentication type: Select SSH public key or password for authentication.
- Username and Password/SSH public key: Provide the credentials for
accessing the VM.
- Inbound port rules: Allow ports 22 (SSH) and 8080 (for Jenkins).
- Click Review + create and then Create to provision the VM.

3. Access the Virtual Machine:


- Once the VM is created, navigate to it from the Azure Portal.
- Click on Connect to get the connection details (SSH command or RDP file) to access
the VM.

4. Connect to the Virtual Machine:


- Use SSH (for Linux VM) or Remote Desktop (for Windows VM) to connect to the virtual
machine.
- Open a terminal or command prompt and connect to the VM using the provided
credentials.
5. Install Java Development Kit (JDK):
- Run the following commands to install the JDK:
sudo apt update
sudo apt install default-jdk -y

6. Install Jenkins:
- Add the Jenkins repository key to the system:

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -


- Append the Debian package repository address to the server's sources list:

sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ >


/etc/apt/sources.list.d/jenkins.list'

- Update the package index:


sudo apt update
- Install Jenkins:
sudo apt install jenkins -y

7. Start and Enable Jenkins Service:


- Start the Jenkins service:
sudo systemctl start jenkins
- Enable Jenkins to start on boot:
sudo systemctl enable jenkins

8. Access Jenkins Web Interface:


- Open a web browser and navigate to `http://<your-vm-public-ip>:8080`.
- Follow the instructions to complete the Jenkins setup wizard, including unlocking
Jenkins and installing recommended plugins.
- Create an admin user and take note of the credentials.

9. Configure Jenkins:
- Once Jenkins is set up, you can configure additional settings such as security, plugins,
and system settings based on your requirements.

10. Integration with Azure Services (Optional):


- You can integrate Jenkins with other Azure services such as Azure DevOps, Azure
Container Registry, or Azure Kubernetes Service (AKS) to automate CI/CD pipelines.

Conclusion:
In this lab, we installed Jenkins on the Azure cloud platform. Jenkins can now be used as
a powerful automation server for building, testing, and deploying applications, enabling
continuous integration and continuous delivery workflows.

You might also like