Hi,
I am trying to add 2 virtual disks to an existing vm. I am using New-HardDisk -VM Name -CapacityGB 3 -Datastore dataname ; New-HardDisk -VM Name -CapacityGB 1 -Datastore dataname two lines of code to achieve this. Is there a way to put
this together in single line like when we create a new vm " New-VM -Name $_.Name -DiskGB 3,3,1,0.29 -Datastore (Get-Datastore $_.Datastore) " ?
Thanks in advance
Sai