You can create a tag category and add a new tag in that category.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Create a tag category named Department.
    $departmentTagCategory = New-TagCategory -Name 'Department'
  2. Create a new tag named SalesDpt in the Department category.
    $salesDptTag = New-Tag -Name 'SalesDpt' -Category $departmentTagCategory