Hi,
The resourcepool parameter does not take inputs such as Business Critical, see my simple code below and error.
New-VM -Name ibgkbapp01 -Template rhel5u5-64-v7 -Datastore vmfs_duprb1_ns960_0650_20 -ResourcePool Business Critical
The Error :
New-VM : 11/8/2011 10:13:10 AM New-VM The specified parameter 'ResourcePool' expects a single value, but your name criteria 'Business Critical' corresponds to multiple
values.
At C:\Documents and Settings\gajulg\Local Settings\Temp\911c0993-9ebb-4433-971a-1040b2f0468d.ps1:2 char:7
+ New-VM <<<< -Name ibgkbapp01 -Template rhel5u5-64-v7 -Datastore vmfs_duprb1_ns960_0650_20 -ResourcePool 'Business Critical'
+ CategoryInfo : InvalidResult: (System.Collecti...dObjectInterop]:List`1) [New-VM], VimException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_MoreResultsThanExpected,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM
New-VM : 11/8/2011 10:13:10 AM New-VM VIContainer parameter: Could not find any of the objects specified by name.
At C:\Documents and Settings\gajulg\Local Settings\Temp\911c0993-9ebb-4433-971a-1040b2f0468d.ps1:2 char:7
+ New-VM <<<< -Name ibgkbapp01 -Template rhel5u5-64-v7 -Datastore vmfs_duprb1_ns960_0650_20 -ResourcePool 'Business Critical'
+ CategoryInfo : ObjectNotFound: (VMware.VimAutom...er ResourcePool:RuntimePropertyInfo) [New-VM], ObnRecordProcessingFailedException
+ FullyQualifiedErrorId : Core_ObnSelector_SetNewParameterValue_ObjectNotFoundCritical,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM