How to get a Virtual Machine created time

With vSphere 6.7 web services SOAP API  includes the creation date of a Virtual Machine and will be persisted with the life-cycle of the VM itself.

You can get it from Virtual Machine -> Config -> createDate.

Earlier to 6.7, we can track the VM Creation Time using EventManager. We should create an EventFilterSpec to filter the events by Virtual Machine creation or deployed, Registered or Cloned Events.

new String[]{“VmCreatedEvent”, “VmBeingDeployedEvent”, “VmRegisteredEvent”, “VmClonedEvent”}

Get Virtual Machine Creation Time earlier to vSphere 6.7


vSphere Power CLI

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.