VMware Cloud Community
nmiyagi
Contributor
Contributor
Jump to solution

ERROR on View powerCLI

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.

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
nmiyagi
Contributor
Contributor
Jump to solution

Oh...Thank you very much. Where the slash was made, it worked. It was saved.

Reply
0 Kudos