Azure – Resize existing virtual machine

Hello Friends,
I have created an Azure development VM to do some RND. The VM was comes with Visual stoduio 2017 and I have selected a very baic size for this VM.After login to the VM through RDP, I feel that, the performance is very slow and even it does not allow me to run the Visual studio 2017. As we know that, one of the great benefits of Azure VMs is the ability to change the size of your VM based on the needs for CPU, Network or disk performance. In one of my previous blog, I have, scale up the VM by increasing the storage space. In this blog post we will discuss the process of changing the size of a virtual machine.

When we are looking forword to resize a virtual machines there are following couple of points need to be consider because that will impact how simple it is to change the size of our VM.

  1. When we create a new VM, it is created/deployed in a selected region and when we are resizeing a VM, it require different physical hardware. In some scnario, an Azure region may not contain the hardware required to support the desired VM size. In this case, we can then find which other VM sizes are supported in each region under the Azure Regions web page.
  2. If the physical region/hardware, which is currently hosting our virtual machine, supports our desired new size, then it is very easy to change the VM size through a simple size change operation which results in a VM reboot.
  3. If our desire VM size is not available in our current region, then we have two options, to either wait for the size to become available in the region or to move the VM to another region.Later, in other post, we will discuss, how to move a VM to another region.

Today in this blog, we will discuss how to resize a VM with available Sizes.In the following figure we can see the initial size and public port of the VM, we want to resize.

Size, Public Port an other details of Existing VM
Figure 1: Azure – Size, Public Port an other details of Existing VM

The VM required a reboot and here I have jsut Stoped the veirtual machine before resize the VM, as we can see in the figure, I have Stoped the VM and select a size availabe under the current region “West India”.

Size, Public Port an other details of Existing VM
Figure 2: Resizing the Existing VM

After Select the size, it will take some time to resize the VM. Once the update is done, we can Start the VM. As we can see in the following figure,the size of the “ManasDevew” VM has changed.

Resized the Existing VM
Figure 3: Resized the Existing VM

One more important point, need to check is the Public port of the VM, we can compaire, both version of VM (In details of before and after resize the VM), we can see in the above figure, the public Port of the VM has changed. So we need to download a new RDP file for remote connection. We can also resize a VM using powershell script.we will discuss on this, later in a different post.

Hope this blog is usefull !!!

Thanks for reading πŸ™‚

Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more. If you have any suggestion / feedback / doubt, you are most welcome.

Stay tuned on Knowledge-Junction, will come up with more such articles.

Advertisements

Comments

3 comments on “Azure – Resize existing virtual machine”
  1. Manoj Sutar says:

    nice

  2. Manoj Sutar says:

    very nice

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.