Seems easy, and I can get the data I need, I just cannot get it into the CSV file the way I want. Here's what I'm looking for:
CSV file format:
VM_Name, Tag#1, Tag#2, Tag#3, Tag#n
The CSV file should have all virtuals in the vCenter, and include all tags against each virtual, one per column- this last bit is giving me headaches!
I've got the following code & outputs:
Script #1:
Output:
#TYPE Selected.System.String
Length
29
29
29
29
29
29
Script #2:
Output:
CRPsldcp01 MyvCenter01 Company.operations.customer.code/CRP, Company.operations.object.status/decommissioned, Company.operations.server.role/scilodc
Problem is that the tags are all in one column.
Script #3:
Output:
CRPsldcp01 CRP decommissioned scilodc
Problem is that the tags are all in one column.
Can someone help me out to extract the tags into separate columns pls?