DEV Community

Cover image for How to manage virtual machines in Azure.
UMEOHIA NNAMDI
UMEOHIA NNAMDI

Posted on • Edited on

How to manage virtual machines in Azure.

Virtual machines (VMs) have become a key part of modern IT systems. Whether you're working on a small project or running a large company’s data center, Virtual machines (VMs) help by making systems more flexible, scalable, and cost-effective. But to get the most out of them, they need to be managed well. This includes setting them up, keeping them running smoothly, watching their performance, and making sure they're secure.
In this article, we’ll cover the basic steps, tools, and best practices for managing virtual machines effectively in today’s fast changing tech world.

Here are steps to follow:

Move the virtual machine network to the new subnet. Steps:

1.Login to Microsoft Azure at https://portal.azure.com

2.In the Azure portal, search and select virtual machines.

In the Azure portal, search and select virtual machines

3.Select virtual machines under services. Select the guided-project-vm virtual machine.

Select virtual machines under services. Select the guided-project-vm virtual machine

4.If the virtual machine is running, select Stop.

If the virtual machine is running, select Stop

5.Wait for the Status field to update and show Stopped (deallocated).

stopped

6.Under the Networking section of the menu, select Network settings. Select the Network interface / IP configuration hyperlink for the Virtual machine.

Under the Networking section of the menu, select Network settings. Select the Network interface / IP configuration hyperlink for the Virtual machine

7.On the IP Configurations page, update the Subnet to ftpSubnet. Select Apply.

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

Resizing the Virtual machine. Steps:

1.In the Azure portal, search and select virtual machines.

select virtual machine

2.Select virtual machines under services. Select the guided-project-vm virtual machine.

Select virtual machines under services. Select the guided-project-vm virtual machine

3.Under the Availability + scale of the menu, select Size. Select a new Virtual Machine size D2s_v5 for example. (Note: If you don’t see the same size as shown in this exercise, select something similar.) Select Resize.

Resize

Attach data disks to a virtual machine. Steps:

1.In the Azure portal, search and select virtual machines.

select virtual machines

2.Select virtual machines under services. Select the guided-project-vm virtual machine.

Select virtual machines under services. Select the guided-project-vm virtual machine

3.Under the settings section, select Disks. Select Create and attach a new disk.

Under the settings section, select Disks. Select Create and attach a new disk

4.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.

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

Configure automatic shutdown on a virtual machine. Steps:

1.In the Azure portal, search and select virtual machines.

select virtual machines

2.Select virtual machines under services. Select the guided-project-vm virtual machine.

Select virtual machines under services. Select the guided-project-vm virtual machine

3.Under the operations section, Select Auto-shutdown. Select ON (on Enabled section). In order to let late uploads finish, set the Scheduled shutdown to 7:15:00 PM. Select Save.

Auto-shutdown

Top comments (0)