Hands on DevSecOps Coaching that is provided on AWS and Azure Cloud platforms. Contact Coach AK at devops.coaching@gmail.com for more info. You can also reach out to Coach AK at +1(469) 733-5248
How to Create Ubuntu 22.0.4 Virtual Machines(VM) in Azure portal? Creating Virtual Machine is easy and straight forward in Azure Cloud. Let us see how to do that in Azure portal.
Pre-requisites:
Azure account subscription, click here if you dont have one.
Watch Steps in YouTube channel:
Steps to create Ubuntu 22.0.4 Virtual Machine in Azure
Let's learn how to connect to a Virtual machine running in Azure cloud from your local machine. Your local machine can be a Windows laptop or MacBook laptop.
Pre-requisites:
1. Keys(for e.g., yourkey.pem) already downloaded in your local machine, preferably in downloads folder. 2. Azure VM is up and running 3. SSH client - for Windows laptop, you need to install an SSH client such as Git bash or putty. You can download Git from this URL - https://git-scm.com/downloads. For Apple laptop you need to download iTerm from here.
Windows Laptop instructions 5. Go to your local machine, Open Git Bash in Windows
make sure you are in downloads directory where your keys got downloaded. Type the below commands:
type below commands:
pwd
this should tell you which directory you are and then navigate to downloads dir.
cd ~/downloads
Now copy the value from Example in the above screen
ssh -i myAzVMKey.pem azureuser@104.43.214.12
and then type enter, say yes and enter
now you should be in Azure cloud, screen should show something like this, It means you are successfully connected to VM instance running on Azure cloud.
Mac Book Laptop or iMac Instructions
Open iTerm window, type the below command to go to downloads directory.
cd downloads
For few Mac laptops, it may add .txt in the end of pem file. in that case you need to remove .txt in the end
ssh -i myAzVMKey.pem azureuser@104.43.214.12
pwd and then execute below command to make sure the keys have only read permissions.
chmod 400 *.pem
6. Paste the url from example highlighted above in step # 4.
ssh -i myAzVMKey.pem azureuser@104.43.214.12
7. type yes when it is asking to connect.
8. now you should be in Azure cloud, screen should show something like this, It means you are successfully connected to VM instance running on Azure cloud.
Jenkins is an open source continuous integration/continuous delivery and deployment (CI/CD) automation software DevOps tool written in the Java programming language. It is used to implement CI/CD workflows, called pipelines.
Please follow the steps to install Java, Jenkins, Maven on Ubuntu 22.0.4 instance. Jenkins, Maven are Java based applications, so we need to install Java first.
Make sure 8080 port is opened in Networking-->Add inbound port role
Change Host Name to Jenkins sudo hostnamectl set-hostname Jenkins
Perform update first sudo apt update
Install Java 11
sudo apt install default-jdk -y
Once install java, enter the below command
Verify Java Version
java -version
Maven Installation Maven is a popular build tool used for building Java applications. Please click here to learn more about Maven. You can install Maven by executing below command:
sudo apt install maven -y
you can type mvn --version you should see the below output.
Now lets start Jenkins installation
Jenkins Setup Add Repository key to the system
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
How to Create Ubuntu 22.0.4 Virtual Machines(VM) in Azure portal? Creating Virtual Machine is easy and straight forward in Azure Cloud. Let us see how to do that in Azure portal.
Pre-requisites:
Azure account subscription, click here if you dont have one.
Watch Steps in YouTube channel:
Steps to create Ubuntu 22.0.4 Virtual Machine in Azure