VMware Cloud Community
zilgs
Enthusiast
Enthusiast

Get-TagAssignment Rest API times out

The Get-TagAssignment Rest API gives the following error:

 

get-tagassignment : 1/31/2019 9:26:53 AM Get-TagAssignment com.vmware.vapi.std.errors.internal_server_error

{'messages': [com.vmware.vapi.std.localizable_message {'id': vapi.bindings.method.impl.unexpected, 'default_message':

Provider method implementation threw unexpected exception: Read timed out, 'args': [Read timed out]}], 'data':}

At line:1 char:1

+ get-tagassignment -category windows

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

+ 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

 

On an ELM VCSA 6.5 U2c - 9451637

Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership

Which PowerCLI version are you using?


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

Reply
0 Kudos
zilgs
Enthusiast
Enthusiast

VMware PowerCLI 6.5.1 build 5377412

 

Component Versions 

  --------------- 

- VMware Cis Core PowerCLI Component 6.5 build 6983166

 

- VMware VimAutomation Core PowerCLI Component 6.5 build 6234650

 

 

- Vcenter is running 6.5u2c (6.5.0, 9451637)

 

I also tested https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614 with the same results. either from the powercli or the windows powershell

 VMware PowerCLI 6.5.1 build 5377412
 
o   ---------------
 
o   Component Versions
 
o   ---------------
 
o      VMware Cis Core PowerCLI Component 6.5 build 6983166
 
o      VMware VimAutomation Core PowerCLI Component 6.5 build 6234650
 
·       Vcenter is running 6.5u2c (6.5.0, 9451637)
Reply
0 Kudos
LucD
Leadership
Leadership

Is there a specific reason you are using this older PowerCLI version?

We are currently at 11.1.0, and a log of the Tag cmdlets have been fixed since 6.5.1

See Welcome PowerCLI to the PowerShell Gallery – Install Process Updates on how to upgrade.


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

Reply
0 Kudos
zilgs
Enthusiast
Enthusiast

Could you please provide me with the link of the latest version and instructions on how to install it?

It has been 2 years or so since I did that install. 

Reply
0 Kudos
LucD
Leadership
Leadership

Since 6.5.1 the installation is not done through a MSI file anymore, but you use the Install-Module cmdlet which downloads the module from the PowerShell Gallery..

The post at the link I provided earlier describes the process.


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

Reply
0 Kudos
zilgs
Enthusiast
Enthusiast

Thank you!,  

 

I will try these steps today and let you know of the outcome.

 

Best regards. 

Reply
0 Kudos