๐๐๐๐ฎ๐ซ๐ ๐๐๐ฆ๐จ๐ญ๐ ๐๐๐๐๐ฌ๐ฌ๐ข๐ง๐ ๐๐ณ๐ฎ๐ซ๐ ๐๐ข๐ซ๐ญ๐ฎ๐๐ฅ ๐๐๐๐ก๐ข๐ง๐๐ฌ ๐ฐ๐ข๐ญ๐ก ๐๐ฎ๐ญ๐จ ๐๐๐๐ฅ๐ข๐ง๐
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.
โ We will need to create our Azure Virtual Machine first to start off this project.
โ 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.
โ 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.
โ 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.
โ 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.
โ Lets connect!!
โ I would like to connect to my Virtual Machine through my command line using Powershell, So choose Native SSH.
โ 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.
โ 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.
โ 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.
โ 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.
โ 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.
โ 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.
โ 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/








