So I have a question about the data being returned by my script and I hope someone can line me out pretty quickly.
This line of code '$az = (Get-tagassignment -Entity $Cluster -Category 'Availability Zone','OS License Enforcement')' is working and returns the correct amount of data but the data is presented as '$Cluster com.vmware.cis.tagging.TagAssociationModel com.vmware.cis.tagging.TagAssociationModel' , rather than what I really want which is the tag.
What am I missing here?
Is this returning what you are looking for?
Select @{N='Entity';E={$_.Entity.Name}},
@{N='Category';E={$_.Tag.Category.Name}},
@{N='Tag';E={$_.Tag.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference