Hello All
question: i need a cmd to list the below information for a vm
vm name | vmhost | cluster | vcenter | storagepolicy | compliancestatus
i have two separate cmds fetching me this, but i need help in making this as a single cmd so that i can export-csv the same
cmd_1, get-vm|select name, vmhost, @{n='Cluster';e={$_.VMhost.Parent}}, @{n='vCenter';e={(($_.uid -split ":") -split "@")[1]}}
cmd_2, Get-SpbmEntityConfiguration| select name, StoragePolicy, ComplianceStatus
much appreciated