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

Re: Mass vApp Deployment

$
0
0

That's good to hear.

 

If you vApp Template needs to be customized then you'll have to add a couple more lines to the script to finish the networking setup.

 

If you only have one external network with a network pool backing and you want the VM's connected directly to it the following will accomplish this

$numVapp=50

 

$vappTemplate = Get-CIVappTemplate -Name "TemplateName"

$myVAppNetwork = Get-CIVAppNetwork -Name "MyVAppNetwork"

 

$vAppBaseName="NewvAppName-"

 

for ($i=1; $i -le $numVapp; $i++){

    New-CIVApp -Name ($vAppBaseName + $i) -VAppTemplate $vappTemplate

    New-CIVAppNetwork -ParentOrgNetwork (Get-OrgNetwork) -VApp ($vAppBaseName + $i) -Direct   

    Get-CIVApp -Name ($vAppBaseName + $i) | Get-CIVM | Get-CINetworkAdapter | Set-CINetworkAdapter -IPAddressAllocationMode Pool -VAppNetwork  -Connected $true

}

 

 

 

 

 

-Eric


Viewing all articles
Browse latest Browse all 169668

Trending Articles



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