DEV Community

Cover image for Azure Management Tasks #Part 3: How Manage the Virtual Machine

Azure Management Tasks #Part 3: How Manage the Virtual Machine

Table of Contents


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-vm virtual machine.

Select the VM.

  • 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).

Stop the VM.

  • Within the Networking subsection of the menu, select Network settings.
  • Select the Network interface / IP configuration hyperlink for the VM.

Select the hyperlink.

  • On the IP Configurations page, update the Subnet to ftpSubnet.
  • Select Apply.
  • Select Home to return to the Azure portal home page.

Update the subnet.


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-vm virtual 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.

Scale the VM vertically.


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-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.
  • Select Home to return to the Azure portal home page.

Add storage to the VM.


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

    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.

Configure automatic shutdown on the VM.


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)