Skip to content

Instantly share code, notes, and snippets.

@gpduck
Created January 29, 2015 23:21
Show Gist options
  • Save gpduck/3590063df45e193c4652 to your computer and use it in GitHub Desktop.
Save gpduck/3590063df45e193c4652 to your computer and use it in GitHub Desktop.
Get-TagAssignment Bug
$VMHost = "yourhost"
New-TagCategory -Name "TestCat"
New-Tag -Name "TestTag" -Category "TestCat"
New-VM -Name "test/tag" -vmhost $VMHost
New-TagAssignment -Tag TestTag -Entity "test/tag"
Get-TagAssignment -Category "TestCat" | %{$_.entity} | fl
@gpduck
Copy link
Author

gpduck commented Jan 29, 2015

Output is:

Name                                                                         : test%2ftag
PowerState                                                                   : PoweredOff
NumCpu                                                                       : 1

Should be:

Name                                                                         : test/tag
PowerState                                                                   : PoweredOff
NumCpu                                                                       : 1

@gpduck
Copy link
Author

gpduck commented Jan 29, 2015

PowerCLI Version

VMware vSphere PowerCLI 5.5 Release 2 Patch 1 build 1931983

Snapin Versions

VMWare AutoDeploy PowerCLI Component 5.5 build 1890764
VMWare ImageBuilder PowerCLI Component 5.5 build 1890764
VMware License PowerCLI Component 5.5 build 1265954
VMware VDS PowerCLI Component 5.5 build 1926677
VMware vSphere PowerCLI Component 5.5 Patch 1 build 1926677
VMware vSphere Update Manager PowerCLI 5.5 build 1302474

@PowerCLI
Copy link

We have logged this bug. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment