I'm trying to assign a tag to a VM from a specific category. I have duplicate tags called "false" under different single-cardinality categories. When I apply tag "false" to a VM, it applies all tags named "false" to the VM. How can I only apply the tag from a specified tag?
$vm = Get-VM -Name <vm_name>
New-TagAssignment -Entity $vm -Tag "false"
You can use the Get-Tag cmdlet
$tag = Get-Tag -Name 'false' -Category 'Cat1'
New-TagAssignment -Entity $vm -Tag $tag
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can use the Get-Tag cmdlet
$tag = Get-Tag -Name 'false' -Category 'Cat1'
New-TagAssignment -Entity $vm -Tag $tag
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I should've known better. Thanks LucD, that worked!