How to increase Azure VM instance size for Multiple Virtual Machines

Hi Guys,

I’m able to increase Azure VM instance size for one by one VM.

I looking for a script that increase instance size for Multiple VM’s in One short.

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/resize-vm

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/resize-vm

Take the same approach as you would with on-prem HyperV.

Just ForLoop with a given list

Get-VM | % ($_) {

Do something here

$_.HardDrives
}

I’m Looking for Azure Virtual Machines.

Can i have a link to refer to test it.