Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214147

Help with adding multiple virtual disks to an existing vm

$
0
0

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


Viewing all articles
Browse latest Browse all 214147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>