VMware Cloud Community
meda1983
Enthusiast
Enthusiast

New-TagCategory : 5/2/2017 2:44:44 PM New-TagCategory The underlying connection was closed: An unexpected error occurred on a receive.. At line:1 char:1 + New-TagCategory -Name "Owner" -Cardinality Single -EntityType "Virtua ...

Has anyone seen errors related to creating tags in the new powercli 6.5.1

New-TagCategory : 5/2/2017 2:44:44 PM   New-TagCategory         The underlying connection was closed: An unexpected error occurred on a receive..

At line:1 char:1

+ New-TagCategory -Name "Owner" -Cardinality Single -EntityType "Virtua ...

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

    + CategoryInfo          : NotSpecified: (:) [New-TagCategory], CisException

    + FullyQualifiedErrorId : ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.NewCategory.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTagCategory

pastedImage_0.png

5 Replies
jpsider
Expert
Expert

Are you connected to more than one vCenter?

Reply
0 Kudos
admin
Immortal
Immortal

This looks strange. Can you please let us know:

1. Are you using FQDN?

2. Provide an example how you're connecting to your VC (connect-viserver ...)

3. Describe the deployment you have (mxn)?

4. Can you capture a Fiddler log, so we can see at which point the connection is failing? Depending on what we see here, we may also need a wireshark log (if this is a TLS-related issue)

Cheers,

Alex

Reply
0 Kudos
thakala
Hot Shot
Hot Shot

I am also experiencing issues with New-TagCategory on PowerCLI 6.5.1

PS C:\Scripts> New-TagCategory -Name Department

New-TagCategory : 8.5.2017 14.02.20     New-TagCategory         vSphere single sign-on failed for connection '/VIServer=vclass\adm

inistrator@vcva01:443/'. Future operations which require single sign-on on this connection will fail. The underlying cause was: Cannot parse request lifetime [2017-05-08T11.00.11.781Z; 2017-05-08T11.05.11.781Z) :: Unparseable date: "2017-05-08T11.00.11.781Z"

At line:1 char:1

+ New-TagCategory -Name Department

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

    + CategoryInfo          : NotSpecified: (:) [New-TagCategory], CisException

    + FullyQualifiedErrorId : ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.NewCategory.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTagCategory

This issue is caused by region settings on Windows system, if I change locale from Finnish to English (US) then this works fine.

Tomi http://v-reality.info
Reply
0 Kudos
meda1983
Enthusiast
Enthusiast

Yes i am connected using FQDN and only connected to one vCenter.

i had to completely uninstall powercli and then reinstall to get this working. 

Kreu
Contributor
Contributor

Hi,

any news here?

We have the same issue. It happens with and without FQDN and only for the New-TagCategory, Get-TagCategory, Get-Tag and New-Tag command. Everything else works (as far as I know).

I connect using Connect-VIServer <servername>

If I connect using Connect-VIServer <servername> -Credential (Get-Credential) I don't have this issue.

PowerCLI Version is 6.5 Release 1 Build 4624819

Regards
Kristian

Reply
0 Kudos