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
Which PowerCLI version are you using?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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
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
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.
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
Thank you!,
I will try these steps today and let you know of the outcome.
Best regards.