When you execute the following command with View power CLI, the following error message is displayed.
・Command
Get-ViewVC -serverName "<vCenter FQDN>" | Add-AutomaticPool -pool_id "fp" -namePrefix "vm-{n:fixed=3}" -templatePath "/Datacenter/vm/(Template Name)" -vmFolderPath "/Datacenter/vm/(Folder Name)" -resourcePoolPath "Datacenter/host/Cluster/Resources/(Resource Pool Name)" -dataStorePaths "/Datacenter/nfs" -customizationSpecName "Custmize" -minimumCount 3 -maximumCount 3
・Error Message
Add-AutomaticPool : PowershellService::AddAutomaticPool FAILED, error=Unexpected error in Admin backend service:Unexpected cluster type: Datacenter
If you know the solution, please let me know.
Is the value for the ResourcePoolPath correct?
You didn't seem to have given an absolute path (missing slash at the start).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is the value for the ResourcePoolPath correct?
You didn't seem to have given an absolute path (missing slash at the start).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Oh...Thank you very much. Where the slash was made, it worked. It was saved.
