VMware Cloud Community
TenchuuKhan
Contributor
Contributor
Jump to solution

Tag is null

Hi,

I wanted to read tags via the SDK but they are always null it seems.

I can however read them via Get-TagAssignment so I've been wondering if they aren't properly implemented?

So, $VM.Tag is always null, $VM | Get-TagAssignment works.

Thanks in advance

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Although both are called Tag, they are not the same I'm afraid.

The Tag property you see through the SDK is not the same as the one you get/set through the Tag cmdlets.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

Although both are called Tag, they are not the same I'm afraid.

The Tag property you see through the SDK is not the same as the one you get/set through the Tag cmdlets.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

TenchuuKhan
Contributor
Contributor
Jump to solution

I guess that would have been too easy...

They aren't even part of the VMWare.Vim assembly. I guess they are useless for our purposes then.

Reply
0 Kudos