Introduction.
Managing virtual machines efficiently is an essential skill for anyone working with Microsoft Azure. Beyond simply creating a VM, administrators often need to modify its network configuration, scale its compute resources to meet changing workloads, expand storage capacity, and implement cost-saving measures such as automatic shutdown.
In this hands-on guide, I'll walk through the practical steps I performed to manage an Azure Virtual Machine using the Azure portal. Specifically, you'll learn how to move a VM to a different subnet, vertically scale the VM to a larger size, attach a new data disk for additional storage, and configure automatic shutdown to help reduce unnecessary Azure costs. Whether you're preparing for the AZ-104 certification or building your Azure administration skills, these tasks represent common real-world VM management operations you'll encounter in cloud environments.
Move the virtual machine network to the new subnet
- From the Azure portal home page, in the search box, enter virtual machines and Select virtual machines under services.
- Select the guided-project-vm virtual machine.
- If the virtual machine is running, select Stop.
- Wait for the Status field to update and show Stopped (deallocated).
- Within the Networking subsection of the menu, select Network settings.
- Select the Network interface / IP configuration hyperlink for the VM.
- On the IP Configurations page, update the Subnet to ftpSubnet.
- Select Apply.
- Select Home to return to the Azure portal home page.
Vertically scale the virtual machine.
- From the Azure portal home page, in the search box, enter virtual machines.
- Select the guided-project-vm virtual machine.
- Locate the Availability + scale submenu and select Size.
- Select a new VM size D2s_v3 for example. (Note: If you don’t see the same size as shown in this exercise, select something similar.)
- Select Resize
Attach data disks to a virtual machine
- From the Azure portal home page, in the search box, enter virtual machines.
- Select the guided-project-vm virtual machine.
- Locate the settings submenu and select Disks.
- 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.
Configure automatic shutdown on a virtual machine.
- From the Azure portal home page, in the search box, enter virtual machines.
- 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.




























Top comments (1)
Managing Azure Virtual Machines is more than just provisioning resources—it requires understanding how networking, scaling, storage, and cost optimization work together in real-world environments. This walkthrough covers several common administrative tasks that cloud engineers perform regularly. I'd be interested to hear how others approach VM management in Azure or whether you have additional best practices you've found valuable in production environments.