The vSphere Tag Service supports the definition of tags that you can associate with different types of vSphere objects, such as virtual machines, resource pools, datastores, and distributed switches. You can use PowerCLI to create and manage tags and tag categories, and to retrieve specified groups of objects.
You create a vSphere tag to add metadata to objects in the vSphere inventory. Tags are grouped in categories and each tag must have at least one category related to it. After you create the tag, you can associate the tag with a vSphere object.
After you create a tag category and create a tag within the category, you can associate the tag with a vSphere managed object. An association is a simple link that contains no data of its own. You can enumerate objects that are attached to a tag or tags that are attached to an object.