Retreive VMID from a VMM Job

Hi,

I need to retreive the VMID from the VMMJob launched on this VM using an SMA Runbook. I was able to retreive the VM Name, but in the same cloud, with the same user, it is possible to have 2 different VMs with the same name. The unique identifier of a VM is its Guid, is there a way (even complex) to retreive the VM ID from the VMM Job so I can launch other runbooks for this VM.

I searched internet and technet and I don't find any helpful solution. 

Thanks

September 11th, 2015 11:38am

Hello,

It looks like these two properties from a job object correlate to the "ID" property on a vm object when I check in my installation:

ResultObjectID
TargetObjectID
Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 11:44am

Hi Noah,

Yes, you are right. Thank you for your help.

September 11th, 2015 12:00pm

Great! You're welcome.

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 12:48pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics