Table of Contents
- Introduction
- Prerequisites
- Step 1: Move the virtual machine network to the new subnet.
- Step 2: Vertically scale the virtual machine.
- Step 3: Attach data disks to a virtual machine.
- Step 4: Configure automatic shutdown on a virtual machine.
- Conclusion
Introduction
In this article, we will be managing the virtual machine created in #Part 1. We will change the VM's assigned subnet to the new FTP subnet created while configuring our VNet in the previous part; we will also scale the VM vertically to increase the computing power, add storage, and lastly, add an automatic shutdown to it. It is important to follow the series sequentially.
Prerequisite
To successfully complete the tasks in this project, you need to
- Login to Microsoft Azure portal.
- Complete the previous articles in the series.
- Basic understanding of virtual machines.
Step 1: Move the virtual machine network to the new subnet.
- From the Azure portal home page, in the search box, enter virtual machines.
- Select virtual machines under services.
- Select the
management-tasks-vmvirtual machine.
-
If the virtual machine is running, select Stop.
Note: In order to make some configuration changes, such as changing the subnet, the VM will need to be restarted.
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.
Step 2: Vertically scale the virtual machine.
- From the Azure portal home page, in the search box, enter virtual machines.
- Select virtual machines under services.
- Select the
management-tasks-vmvirtual machine. - Locate the Availability + scale submenu and select Size.
-
Select a new VM size D2s_v5 for example.
Note: If you donβt see the same size as shown in this tutorial, select something similar.
Select Resize.
Select Home to return to the Azure portal home page.
Step 3: Attach data disks to a virtual machine.
- From the Azure portal home page, in the search box, enter virtual machines.
- Select virtual machines under services.
- Select the
management-tasks-vmvirtual machine. - Locate the settings submenu and select Disks.
- Select Create and attach a new disk.
- Leave LUN as default.
- Enter
ftp-data-diskfor the Disk name. - Leave the Storage type as default.
- Enter
20for the Size. - Select Apply to create the new storage disk and attach the disk to the machine.
- Select Home to return to the Azure portal home page.
Step 4: Configure automatic shutdown on a virtual machine.
- From the Azure portal home page, in the search box, enter virtual machines.
- Select virtual machines under services.
- Select the
management-tasks-vmvirtual 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.
Note: If your save button does'nt appear go back to the overview page and start the VM. Now go back to your auto-shutdown configuration the save button will appear after that.
Select Home to return to the Azure portal home page.
Conclusion
Good job making it this far; you successfully configured the virtual machine by adding the new FTP subnet created, scaled the VM vertically, added a disk for more storage, and added an automatic shutdown. Let's move on to the next part of the series where we manage the storage account.
Thank you for reading my blog. ππ
If you need further assistance, feel free to reach out in the comments or hit me up on Twitter. You can also follow me on GitHub. My DMs are open, and love discussions on cloud topics as always! π
Oluwatofunmi Emmanuel Oluwaloseyi







Top comments (0)