8 Replies Latest reply on Dec 5, 2017 7:12 AM by TylerDurden77

    New-TagAssignment        The given key was not present in the dictionary

    TylerDurden77 Enthusiast

      Hi,

       

      I'm trying to add "tags" on my VMs using powercli.

       

      I get nasty red error messages.... But the VMs gets the tag applied.

       

      New-TagAssignment : 2017-12-05 11:12:35    New-TagAssignment        The given key was not present in the dictionary.   

      At line:13 char:9

      +         New-TagAssignment -Entity $vm -Tag $lintag

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

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

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

       

      Also, when iI run questions against my vCenter about applied tags I don't get the accurate information.

       

      vCenter version 6.5.0.5300 

      PS C:\Windows\system32> Get-PowerCLIVersion

      PowerCLI Version

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

         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

       

      Advice?

      Regards,

      Johan