Hello, I would like to add some comments and observations about this issue. Our goal is to get the latest backup data from vCenter. We have recently switched from Veeam backup to Commvault. Wh...
See more...
Hello, I would like to add some comments and observations about this issue. Our goal is to get the latest backup data from vCenter. We have recently switched from Veeam backup to Commvault. When I run this command: Get-VM -Name xxx-Xxxxx |Select-Object -Property CustomFields The data for the Veeam backup is listed in this manner: "CustomFields": [ "[Application/Service, ]", "[Backup, ]", "[Backup Status, Backup Job ID [125036] Client: [vcenter.blue.psu.edu], Backup Set: [defaultBackupSet], Subclient: [Zone-B] Parent Backup Job ID [123697]]", "[Budget Owner, ]", "[ClusterInvariantVMMId, ]", "[Customer, ]", "[Fixing Contact, ]", "[Last Backup, 4/29/2022 1:21:01 AM]", "[OS, ]", "[OS Patched, ]", "[Production Level, ]", "[Server Type, ]", "[Technical Contacts, ]", "[VRM Owner, ]", "[vrmManagedMachine, ]" When I run this command for the same VM Get-Annotation -Entity xxx-Xxxxx I get this data AnnotatedEntity Name Value --------------- ---- ----- xxx-Xxxxx Application/Service xxx-Xxxxx Backup xxx-Xxxxx Backup Status Backup Job ID [125036] Client: [vcenter.blue.p... xxx-Xxxxx Last Backup 4/29/2022 1:21:01 AM When I run this command string: $vm = Get-VM -Name xxx-Xxxxx Get-Annotation -Entity $vm -CustomAttribute * I also get this output: AnnotatedEntity Name Value --------------- ---- ----- xxx-Xxxxx Application/Service xxx-Xxxxx Backup xxx-Xxxxx Backup Status Backup Job ID [125036] Client: [vcenter.blue.p... xxx-Xxxxx Last Backup 4/29/2022 1:21:01 AM What I am puzzled about here is that VMware seems to be calling the same data by at least two different names, "CustomFields" and "CustomAttributes". I need to have the correct name to add to the custom Perl module we use to connect to the vCenters. I realize I am posting a lot of stuff, but I want to be clear about the issue. Thank you, Tad