VMware Cloud Community
efanjo
Enthusiast
Enthusiast

vCenter 6.5 PowerCLI problems?

Hi,

we just upgrade to vCenter 6.5. Now some of our PowerShell scripts throwing an error regarding tags.

$vm  = Get-VM vm1

Get-TagAssignment -Entity $vm

Get-TagAssignment : 17.01.2017 08:29:19Get-TagAssignment   

Expected <_this> tag not found

while parsing call information for method QueryServiceEndpointList

at line 1, column 218

while parsing SOAP body

at line 1, column 207

while parsing SOAP envelope

at line 1, column 38

while parsing HTTP request for method queryServiceEndpointList

on object of type vim.ServiceDirectory

at line 1, column 0

At C:\scripts\modules.ps1:10 char:1

+ Get-TagAssignment -Entity $vm

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo      : NotSpecified: (:) [Get-TagAssignment], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTagAssignment

I tested this with PowerCLI 6.3 and 6.5. Are there any known bugs regarding tags?

Reply
0 Kudos
1 Reply
nnamedieh
Contributor
Contributor

Hi efanjo,

I ran into the same problem after upgrading my vcenter to version 6.5.

Unfortunately my installed PowerCLI Version was 6.3.

After I've upgraded PowerCLI to Version 6.5, I was able to retrieve information about my Tags with PowerCLI.

So if you use different versions of these different products, try to upgrade to the same version.

Hope that helps Smiley Happy

Reply
0 Kudos