Unfortunately, that didn't work. I am connected to two different vcenters. Here is the error when I run it while connected to both (continuous errors until "cntl-c" - no results):
Exception calling "Add" with "2" argument(s): "Item has already been added. Key in dictionary: 'AppCode/CO2710' Key
being added: 'AppCode/CO2710'"
At C:\temp\emptytag.ps1:4 char:33
+ $tagTab.Add("$($_.Category)/$($_.Name)",'')
+ ~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException
When I run the script while only connected to one vcenter, I get results returned, however it appears to be all tags (regardless of empty or not). And I receive a different error:
Get-TagAssignment : 8/23/2019 9:59:52 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: com.vmware.vapi.std.errors.InternalServerError, 'args':
[com.vmware.vapi.std.errors.InternalServerError]}, com.vmware.vapi.std.localizable_message {'id':
vapi.bindings.method.impl.unexpected, 'default_message': Provider method implementation threw unexpected exception:
null, 'args': [null]}], 'data':}
At C:\temp\emptytag.ps1:8 char:1
+ Get-TagAssignment | %{
+ ~~~~~~~~~~~~~~~~~
+ 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