1.       Login your Azure Account

image.png

 

2.       Find out the VM which you want to resize using the command “Get-AzureVM”

Get-AzureVM

image.png

3.       Select the detail info of your VM

Get-AzureVM -ServiceName leounmanagedvm018664 -Name leounmanagedvm01

使用Powershell改变Azure经典虚拟机Size_第1张图片

4.       Use the following command to update the VM size

Get-AzureVM -ServiceName "leounmanagedvm018664" -Name "leounmanagedvm01" | Set-AzureVMSize -InstanceSize Standard_A1_v2 | Update-AzureVM

image.png

5.       Have a verification


 使用Powershell改变Azure经典虚拟机Size_第2张图片

 

6.       You can use the command “Get-AzureRmVMSize” to check all the VM sizes on our cloud

使用Powershell改变Azure经典虚拟机Size_第3张图片