Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

PowerCli issue Get-TagAssignment not working

$
0
0

We have began to use TAGs.

All of our VM's have at least 1 TAG.

I am attempting to read the TAG via PowerCli.

 

When I run the following Powershell command it should list all of the TAGs, but all VM's are returned with no TAG.

 

Get-VM | Select Name,@{N="Tags";E={((Get-TagAssignment -Entity $_ | select -ExpandProperty Tag).Name -join ",")}}

 

This is just testing, my requirement is to read a specific TAG from a given VM.

 

The TAG has a category Jim Code


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>