Using Get-Tag command in VMware PowerCLI 12.2, unable to fetch tag information in vCenter Server 7.0.3. Failing with below error.
get-tag
get-tag: 04/07/2024 15:58:40 Get-Tag
'error_type':
com.vmware.vapi.std.errors.unauthenticated { 'messages': [com.vmware.vapi.std.localizable message {id: com.vmware.vapi.endpoint.method. authentication. required, default_message': Authentication required., "args":0,"params": "localized':}], 'data': UNAUTHENTICATED, 'challenge': Basic realm="VAPI endpoint", SIGN realm-51576bff255c3d200490471a5016266719161ddc, service="VAPI endpoint", sts="https://vdc-vcsalres04. vdc. adm/sts/STSService/vsphere. local", SIGN realm-efc577419a3891962ebf94125 c18dcda1593a120, service="VAPI
endpoint", sts="https://vdc-vcsalres04.vdc.adm/sts/STSService/vsphere.local"},
At line:1 char:1
+get-tag
+ CategoryInfo
: Not Specified: () [Get-Tag], CisException
+ FullyQualifiedErrorId: VMware.VimAutomation. ViCore. Impl. V1. Service. Tagging. Cis. TaggingServiceCisImpl.GetTag. Error, VMware.VimAutomation. ViCore.Cmdlets.Commands. Tagging.GetTag
VMware PowerCLI 12.2, vCenter Server 7.0.3.
This is a known issue in VMware PowerCLI 12.2 and we need to update to the latest version of VMware PowerCLI 13.2.
Sleep for a period of time ( example xxs )
Get-Tag