You can create custom attributes in the vSphere Client and associate the attribute with an object, such as a host, virtual machine, cluster, or network. You can also edit custom attributes.
After you create the attributes, set an appropriate value for the attribute on each virtual machine. This value is stored with vCenter Server and not with the virtual machine. Use the new attribute to filter your virtual machines. If you no longer need the custom attribute, remove it. A custom attribute is always a string.
For example, suppose that you have a set of products and you want to sort them by sales representative.
Create a Name custom attribute for the sales person's name.
Add the Name custom attribute column to one of the list views and add a name to each product entry.
You can now click the Name column to sort alphabetically by sales person.
Tags and tag categories support a finer-grained mechanism for tagging your object. Consider using tags and tag categories instead of custom attributes.
- In the vSphere Client, select .
- Click Custom Attributes.
All currently defined custom attributes for vCenter Server are displayed.
- Click Add.
- Enter the values for the custom attribute.
- Type the name of the attributes in the Attribute text box.
- Select the attribute type from the Type drop-down menu.
- Click OK.
After you have defined an attribute on an object, it is available to all objects of that type in the inventory. However, the value you specify is applied only to the currently selected object.
- You can later edit a custom attribute.
- Select the attribute and click Edit.
- Change the Name.
- Change the type if it's available.
- Click OK.