Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Get-Tag fails on linked vCenter

$
0
0

When attempting to use the cmdlets Get-Tag or Get-TagAssignment they are failing on our second vCenter. We have two VCSA 6.5 instances in Enhanced Linked Mode and it is only happening on the secondary vCenter. I am connecting directly to the secondary vCenter when using the commands. The tags were created on the primary vCenter.

get-tag : 7/19/2018 8:53:29 AM  Get-Tag         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.svc.resource_model'., 'args': [com.vmware.cis.data.svc.resource_model]}], 'data':}
At line:1 char:1
+ get-tag
+ ~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Get-Tag], CisException    + FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Err   or,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTag

 

PS G:\> Get-Datacenter | Get-TagAssignment
Get-TagAssignment : 7/19/2018 8:57:16 AM        Get-TagAssignment               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.svc.resource_model'., 'args': [com.vmware.cis.data.svc.resource_model]}],
'data':}
At line:1 char:18
+ Get-Datacenter | Get-TagAssignment
+                  ~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Get-TagAssignment], CisException    + FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTagAssi   gnment.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTagAssignment

Any ideas as to what may be causing this issue?

 

The REST API from the secondary vCenter is able query the tags so I'm looking into using that as a workaround.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>