You can select existing tags that are available in the NSX-T Data Center inventory or create new tags to add to an object.

The following procedure explains the steps for adding tags to a single object. For this procedure, the virtual machine object is considered. The steps for adding tags to other objects remain the same. You can navigate to the specific object page, and follow similar steps to add tags to that object.

For information about the maximum number of tags supported in NSX-T Data Center objects, see the VMware Configuration Maximums tool at https://configmax.vmware.com/home.

Procedure

  1. With admin privileges, log in to NSX Manager.
  2. Ensure that you are in the edit mode of an object to assign tags to it. Objects can be virtual machines, segments, tier-0 gateways, and so on.
    For example, to tag virtual machines, click Inventory > Virtual Machines. Next to the virtual machine that you want to edit, click Actions menu, and then click Edit.
  3. In the Tag drop-down menu, enter a tag name. When you are done, click Add Item(s).
    The maximum length of the tag name is 256 characters.

    If tags exist in the inventory, the Tag drop-down menu displays a list of all the available tags and their scope. You can select an existing tag from the drop-down menu and assign it to the virtual machine.

    Note: Do not assign the Edge_NSGroup tag to VMs. The system automatically assigns this tag to edge VMs for including them in the DFW exclusion list.
  4. (Optional) Enter a tag scope.
    For example, let us say, you want to tag virtual machines based on their operating system (Windows, Mac, Linux). Create three tags, such as Windows, Linux, and Mac, and set the scope of each tag to OS.
    The maximum length of the scope is 128 characters.

    If you selected an existing tag from the inventory, the scope of the selected tag is applied automatically. Otherwise, you can enter a scope for the new tag that you are creating.

  5. Click the + icon.
    The tag is added to the virtual machine.
  6. (Optional) Repeat steps 3–5 to add more tags to the virtual machine.
  7. Click Save.