DEV Community

Cover image for Manage Virtual Machines
Ajayi Daniel
Ajayi Daniel

Posted on

Manage Virtual Machines

Managing virtual machines (VMs) refers to the process of creating, configuring, monitoring, and maintaining virtualized computing environments on cloud platforms like Microsoft Azure, AWS, or Google Cloud
Managing VMs involves tasks such as:
Provisioning: Setting up a new virtual machine with the desired OS, size, and region
Configuring: Installing software, networking, and security settings
Monitoring: Checking performance (CPU, memory, disk usage) and uptime
Scaling: Increasing or decreasing resources based on demand
Backup & Recovery: Ensuring data protection and disaster recovery
Security: Managing access, firewalls, and updates

Steps in managing virtual machines

step1 Select the guided-project-vm virtual machine

guided

Step2 If the virtual machine is running, select Stop, then Wait for the Status field to update and show Stopped (deallocated).

bbb
Step 3
From the Networking subsection of the menu, select Network settings.
Select the Network interface / IP configuration hyperlink for the VM.

configure
Step 4 On the IP Configurations page, update the Subnet to ftpSubnet.
Select Apply.

subnet
ROLE 2 Vertically scale the virtual machine
Vertically scaling a virtual machine means increasing or decreasing its capacity by changing its size or resources — such as CPU, RAM, or storage — without adding more VMs.
EGA logistics company runs their tracking software on an Azure Virtual Machine (VM) with the following specs:

Standard B2s: 2 vCPUs, 4 GB RAM
As demand increases during peak delivery season, the system slows down. Instead of creating new VMs, they scale vertically to:
Standard D4s_v3: 4 vCPUs, 16 GB RAM
Result: Better performance, faster data processing, and no service interruption.
Step1From the Azure portal home page, in the search box, enter virtual machines.
Select virtual machines under services.
Select the guided-project-vm virtual machine.
Locate the Availability + scale submenu and select Size.
Select a new VM size D2s_v5 for example.
Select Resize.

bad

resize

Role 2 Attach data disks to a virtual machine
Attaching data disks to a virtual machine (VM) means adding extra storage space to the VM — just like adding an external hard drive to your computer.
Imagine your laptop is running out of space. You plug in a USB drive or external hard disk to store more files — music, documents, videos.
That’s exactly what attaching a data disk to a VM does in the cloud:
The VM gets additional space for files, apps, databases, or backups.
It helps separate system files (OS) from your data files, which is safer and more efficient.
Step1
Select virtual machines under services. Select the guided-project-vm virtual machine. Locate the settings submenu and select Disks.

description

Image
step2
Select Create and attach a new disk.
Leave LUN as default. Enter ftp-data-disk for the Disk name.
Leave the Storage type as default. Enter 20 for the Size.
Select Apply to create the new storage disk and attach the disk to the machine

I1111

234

ROLE3 Configure automatic shutdown on a virtual machine
Automatic shutdown on a virtual machine means setting a specific time for the VM to turn off by itself — helping you save costs and avoid unnecessary usage.
Why Use It?
Reduces cloud billing costs
Prevents idle VM from running overnight
Useful for development, testing, and training VMs
STEP 1
Select virtual machines under services.
Select the guided-project-vm virtual machine.
Under the Operations submenu, select Auto-shutdown. In order to let late uploads finish, set the Scheduled shutdown to 7:15:00 PM.
Select Save.
Iop

Top comments (0)