Anyone have experience working with vSphere Tags that are replicated between vCenter instances via enhanced linked mode? When I connect to both vCenter instances I get an error when assigning a tag that it expects a single value.
To explain a bit more. When querying for the tag "No Backup" I get a response from both vCenter instances.
When I try to assign the tag I get the error below.
Did you try adding the Server parameter and specify one of the 2 vCenters ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD! This gets me pretty close. I'm still trying to work through the logic of how I would implement this.
For example, If I have 2 vcenters and run a get-vm I will get a list of all the vms from both vcenters. However I would need a way to discern the tag from each vCenter that should be applied.
So right now I'm having to write two separate functions to perform the same task. Does that make sense?
If you have a Replication Agreement between the two PSC, the tag replication should occur.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference