VMware Cloud Community
EBoucq
Enthusiast
Enthusiast
Jump to solution

Get-VMHost -Tag error on vCenter 6.7

Hi,

When using PowerCli (I tried v12.1 up to 12.7) on a vCenter 6.7U3 with the Get-VMHost -Tag xxxx command, I get this error : 

"

Get-VMHost : 4/17/2023 7:48:31 PM Get-VMHost com.vmware.vapi.std.errors.operation_not_found {'messages': [com.vmware.vapi.std.localizable_message {'id': vapi.method.input.invalid.interface, 'default_message': Cannot find service
'com.vmware.cis.data.resource_model'., 'args': [com.vmware.cis.data.resource_model], 'params': , 'localized':}], 'data': , 'error_type': OPERATION_NOT_FOUND}
At line:1 char:1
+ Get-VMHost -Tag xxxx

+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-VMHost], CisException
+ FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVMHost

Get-VMHost : 4/17/2023 7:48:31 PM Get-VMHost Could not find Tag with name 'xxxx'.
At line:1 char:1
+ Get-VMHost -Tag xxxx
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (xxxx:String) [Get-VMHost], VimException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVMHost

Get-VMHost : 4/17/2023 7:48:31 PM Get-VMHost Tag parameter: Could not find any of the objects specified by name.
At line:1 char:1
+ Get-VMHost -Tag SPLA
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (VMware.VimAutom...gging.Tag[] Tag:RuntimePropertyInfo) [Get-VMHost], ObnRecordProcessingFailedException
+ FullyQualifiedErrorId : Core_ObnSelector_SetNewParameterValue_ObjectNotFoundCritical,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVMHost

Any idea where the issue is coming from?

Thank you in advance !

Eric

 

Reply
0 Kudos
1 Solution

Accepted Solutions
EBoucq
Enthusiast
Enthusiast
Jump to solution

I found out what was wrong : someone stopped the VMware vSphere Web Client service in the vCenter Appliance Management !

Thanks for your reply though.

Eric

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Did you already stop/start your PS session?

Worst case, can you restart your VCSA?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
EBoucq
Enthusiast
Enthusiast
Jump to solution

I found out what was wrong : someone stopped the VMware vSphere Web Client service in the vCenter Appliance Management !

Thanks for your reply though.

Eric

Reply
0 Kudos