NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

VMware Solutions Discussions

VSC 6.2 Cmdlets - Not Creating VM in Correct Folder or Applying OS Custom Spec

SteveGroner
2,248 Views

For some reason when using the following the VM's get created but it does not put them in the correct folder and it does not apply the correct customization spec.  Any ideas why this would not be working.  Also is there a way to have the VM created using the "Cluster" instead of specifying a host.  Otherwise I need to create them all on a single host (there are 70) and then balance them through code afterwards using PowerCLI.

 

I did not provide all the values for the different variables but they are all being defined and I have validated that.

 

$CustSpec = "EnviroWeb"
$DestFolder = "QA Environment"

$NewCloneTaskID = new-vscClone `
-virtualMachineName $vmTemplateName ` -ParentStorageSystemID $vmTemplateStorageID ` -DestStorageSystemID $dsStorageID ` -DataStoreName $dsName ` -custSpecification $CustSpec ` -specifiedDestinationVmFolder $DestFolder ` -DestinationHostName $InitialESXHost ` -DiskFormat THIN ` -MemorySize 8192 ` -VirtualProcessors 4 ` -NewCloneNamesArray $thisBatchVMList ` -AdvancedCloning

 

0 REPLIES 0
Public