VMware Cloud Community
pamiller21
Enthusiast
Enthusiast

Copy NSX-T Tags to VM_replica

Hey all,

I was wondering if there is a way to make a script that copies the NSX-T tags from a VMName then to a VMName_replica

Reply
0 Kudos
4 Replies
Zsoldier
Expert
Expert

I'm not aware of any.  My assumption is that you want to get the tags applied in NSX-T on a VM in vCenter, copy the tags associated w/ that and overwrite or append to a new replica VM?

Solved: Re: Applying NSXT Tag to a VM - VMware Technology Network VMTN

Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
Reply
0 Kudos
pamiller21
Enthusiast
Enthusiast

Sorry for being vague.  I mean I want to take the NSX-T tags that are applied to a VM in the NSX-T manager to the VM's replica in NSX-T manager as well.  They just have _replica appended.

Reply
0 Kudos
pamiller21
Enthusiast
Enthusiast

Just checking in on this, not sure if there was any progress or ideas how to do this.

Thank you so much for even looking at it!

Reply
0 Kudos
Zsoldier
Expert
Expert

Sorry, haven't had time to dedicate to this as it requires a bit more work than a couple of simply lines.  I'll try to get to it this week.  Trying to make something "nice", but that's just my OCD kicking in.

You could use a combination of these two methods I wrote previously:

https://gist.github.com/Zsoldier/9eda954f0c972d17c124040d7759054a

https://gist.github.com/Zsoldier/1a42161e53e841e2e3f3d1e02bd159c4

 

Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
Reply
0 Kudos