Hi.
I found out that
$cluster = get-cluster "clustername" get-template -location $cluster
doesn't work. The error message is:
get-template : 16.04.2018 10:22:20 Get-Template ClusterImpl is not a valid location type for Get-Template.
In Zeile:1 Zeichen:1
+ get-template -location $cluster
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (AL_CL-cloud01:ClusterImpl) [Get-Template], VimException
+ FullyQualifiedErrorId : Core_ContainerCmdletBase_GetValidLocations_InvalidLocation,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetTemplate
get-template : 16.04.2018 10:22:20 Get-Template The values specified for the Location parmeter are not valid for the Get-Template cmdlet.
In Zeile:1 Zeichen:1
+ get-template -location $cluster
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VMware.VimAutom...y.VIContainer[]:VIContainer[]) [Get-Template], VimException
+ FullyQualifiedErrorId : Core_ContainerCmdletBase_TryValidateParameterList_AllLocationsAreInvalid,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetTemplate
The same with get-vm -location $cluster works without any problems.
In the PowerCLI Reference is written, that the parameter location is available.
Does anyone have an idea where the error is?
Thanks.