使用Powershell改變Azure經典虛擬機Size

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

image.png

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


 image.png

 

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

image.png

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章