Sitemap

๐’๐ž๐œ๐ฎ๐ซ๐ž ๐‘๐ž๐ฆ๐จ๐ญ๐ž ๐€๐œ๐œ๐ž๐ฌ๐ฌ๐ข๐ง๐  ๐€๐ณ๐ฎ๐ซ๐ž ๐•๐ข๐ซ๐ญ๐ฎ๐š๐ฅ ๐Œ๐š๐œ๐ก๐ข๐ง๐ž๐ฌ ๐ฐ๐ข๐ญ๐ก ๐€๐ฎ๐ญ๐จ ๐’๐œ๐š๐ฅ๐ข๐ง๐ 

5 min readDec 14, 2024

--

Press enter or click to view image in full size

Business Problem: A business corporation host its Linux and Windows applications on over 100 Azure Virtual Machines (VM). The globally dispersed IT team needs efficient, secure, and reliable tools for remote administration and troubleshooting to minimize downtime and security risks. Additionally, the company needs to ensure high availability and scalability of its applications.

Get Leon B.โ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

Business Solution:To address this the solution involves setting up Auto Scaling Groups to automatically adjust the number of Virtual Machines based on demand, ensuring scalability and high availability. For secure remote administration, SSH will be implemented for Linux Virtual Machines, providing encrypted channels for secure access. Also network Security Groups (NSGs), routing rules, ensure secure and efficient communication within the network and with external networks.

Press enter or click to view image in full size

โ— We will need to create our Azure Virtual Machine first to start off this project.

Press enter or click to view image in full size

โ— A new resource group will be needed to host all the tools we are going to use. Next we can input a name and region as well as availability zones.

Press enter or click to view image in full size

โ— For this project I will be choosing a Linux image for my virtual machine. I had to mess around with multiple images to get a smaller size VM so it wonโ€™t be so expensive to create this project.

Press enter or click to view image in full size

โ— I will be connecting to my Virtual Machine later and I will do so by using SSH to connect, so for the authentication type I will choose SSH public key and I will also choose generate new key pair. This key pair will need a name and allow the inbound port number 22 to be enabled.

Press enter or click to view image in full size

โ— Our network security group will need to be created and it will be advanced and this is important because we need to manage the inbound and outbound traffic to allow or deny traffic, and also many other security rules you can configure in depth.

โ— We can skip past all other configurations for this Virtual Machine and create it. This pop-up will show up to download our private key that we need for SSHโ€™ing to our Virtual Machine through our command line.

Press enter or click to view image in full size

โ— Lets connect!!

Press enter or click to view image in full size

โ— I would like to connect to my Virtual Machine through my command line using Powershell, So choose Native SSH.

Press enter or click to view image in full size

โ— Now with Azure, in order to connect to our Virtual Machine we need to enter the file name of the key pair downloaded. This is cool that Azure has this procedure because with AWS you just copy and paste the specified private key into the command line.

Press enter or click to view image in full size

โ— In order to SSH into your VM please make sure you are in the correct DIRECTORY!! Here I am in my downloads directory and I will enter the private key Azure providesโ€ฆ And we are in!! I ran the โ€œwhoamiโ€ command to make sure I am the Azure user.

Press enter or click to view image in full size

โ— To further my project I will be creating an Auto-Scaling group to automatically spin up more Virtual Machine instances based on demand usage. I will be using different availability zones to provide resiliency.

Press enter or click to view image in full size

โ— I will choose my security type as trusted launch virtual machines. For the scaling I will choose Auto-scaling based on CPU metric so that we can meet the demands of many customers on our website etc. We donโ€™t want any overloading and buffering to occur in case the demand is too high and the network canโ€™t be supported.

Press enter or click to view image in full size

โ— Based on my preference in doing this project I will only need to have a minimum of 2 instances running at all times, a maximum of 5 instances to upscale, and if the CPU usage is greater that 65% then we can proceed with another instance creation.

Press enter or click to view image in full size

โ— Once our network traffic slows down then we can decrease our running instances if our CPU output is less then 20%. For any spikes we can give a time of 6 minutes to gather the CPU data to see if we need to scale.

Press enter or click to view image in full size
All the Resources Created
Press enter or click to view image in full size

โ— Heading over to our Virtual machines. We have 2 instances running because of the minimum amount of instances we need to stay running constantly.

Thanks for taking the time to read my project. This is just a simple project to create our Virtual Machines and use the powerful tool of Auto-Scaling to keep anywhere from a small business afloat to a large business afloat to meet demands. Any questions comment or concerns please reach me at my LinkedIn: https://www.linkedin.com/in/leonboodram/

--

--

Leon B.
Leon B.

Written by Leon B.

Cloud DevOps Engineer. Self starter and motivated to troubleshoot and help upscale a business. Enjoy working collaboratively to connect our thoughts.