Azure- Increase the VM Size

  1. Login to Azure cloud website https://portal.azure.com
  2. Go to the search tab  and  type  virtual machine
  3. Click on virtual machine which you want to upgrade
  4.  Go to settings > size
  5. Select the new size as mentioned below

VM1

6. Click on resize

If the virtual machine is currently running, changing its size will cause it to be restarted. Please schedule the activity in maintenance window.

 

Powershell commands to resize the VM;

$vm = Get-AzVM -ResourceGroupName $resourceGroup -VMName $vmName
$vm.HardwareProfile.VmSize = “<newVMsize>”
Update-AzVM -VM $vm -ResourceGroupName $resourceGroup

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s