VMware is moving away from custom attributes and toward the categories and tags. currently vCO has vCenter workflows for creating custom attributes, however, I have not found anything on automating the creation and assignment of tags with virtual machines.
ultimately, I would like to specify the category via vCAC at time of provisioning. tag could be billing dept. and the response either if tag exists (ie Engineering) then it would associate the tag (engineering) to the category (billing dept). However if the tag doesn't exist, then a new tag would be created and associated to the VM.
thoughts?
PowerShell commands
Since VMware PowerCLI version 5.5R1 and up there are a number of commands available to work with tags, such as:
- Get-Tag
- New-TagAssignment