Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

VMware Solutions Discussions

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

SteveGroner

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
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public