Howdy folks,
I have several VMs running in my Azure demo environment. As resizing them is a common task for me and doing it in Azure portal can be really anoying, I usually use a PowerShell one-liner that manages it all for me. With the following code you can resize all VMs in the same Resource Group to the same size.
$NewVMSize = Standard_A1_v2 ## All VMs will be resized to Standard A1_V2 Get-AzureRmVM -ResourceGroupName myRG | foreach {$_.HardwareProfile.VmSize = $NewVMSize; Update-AzureRmVM -ResourceGroupName myRG -VM $_}
By for now,
Tom