Skip to main content
1 / 2
kosmos.ebi
  • 255
  • 1
  • 5

こんな感じでどうでしょうか

$VMName = "2007CMCEN"
$NewVMSize = "Standard_A5"
 
$vm = Get-AzureRmVM -ResourceGroupName $ResourceGroupName -Name $VMName
$vm.HardwareProfile.vmSize = $NewVMSize
Update-AzureRmVM -ResourceGroupName $ResourceGroupName -VM $vm

参考URL: http://blogs.technet.com/b/mmodin/archive/2015/12/01/resize-azure-arm-virtual-machine-with-powershell.aspx

kosmos.ebi
  • 255
  • 1
  • 5