This workflow will apply vCenter tags to a Virtual Machine using web calls to the vCenter SDK and inventory services, no powershell jump host required.
You must create 2 new rest hosts:
When you run the workflow, it will prompt you for:
- SDKRestHost (#1 listed above) - used to issue calls to SDK
- InvRestHost (#2 listed above) - used to issue calls to Inventory
- User - Username with rights to apply tags in vcenter
- Password - Password of the user
- Virtual Machine - The virtual machine you want to apply tags to
- Tags - a list of tag names you want to apply to the virtual machine.
Currently tested with:
- vRO 6.0
- vCenter 5.5
vRO 6 is required as it uses the new Switch and Default Exception items. If there is enough interest I can backport it to vCO 5.5.
Use at your own risk, test in development environment first etc. etc...
-James