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. From your browser, log in with admin privileges to an NSX Manager at https://<nsx-manager-ip-address>.
  2. Edit an object.
    For example, click Inventory > Virtual Machines. Next to the virtual machine that you want to edit, click the vertical ellipses, and 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. The list of available tags includes user-defined tags, system-defined tags, and discovered tags. You can select an existing tag from the drop-down menu and add it to the virtual machine.

  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.