VMware Cloud Community
OCHA
Contributor
Contributor

Is it possible to find which template was used to create a vm? Thanks

Is it possible to find which template was used to create a vm? Thanks

0 Kudos
4 Replies
Borja_Mari
Virtuoso
Virtuoso

Hello,

you can using powercli (querying events):

Get-VM | Get-VIEvent -Types Info | Where {$_.Gettype().Name -eq "VmBeingDeployedEvent"}

Taken from here.

Best regards,

Pablo

------------------------------------------------------------------------------------------------- PLEASE CONSIDER AWARDING any HELPFUL or CORRECT reply. Thanks!! Por favor CONSIDERA PREMIAR cualquier respuesta ÚTIL o CORRECTA . ¡¡Muchas gracias!! VCP3, VCP4, VCP5-DCV (VCP550), vExpert 2010, 2014 BLOG: http://communities.vmware.com/blogs/VirtuallyAnITNoob
0 Kudos
kdbinger
Enthusiast
Enthusiast

That's pretty sweet command, but unfortunately it did not work.  Guessing the event was too long ago.

0 Kudos
Borja_Mari
Virtuoso
Virtuoso

Hello,

the period of time the events stays in the vcenter dabase is defined in the database retention policy.

Best regards,

Pablo

------------------------------------------------------------------------------------------------- PLEASE CONSIDER AWARDING any HELPFUL or CORRECT reply. Thanks!! Por favor CONSIDERA PREMIAR cualquier respuesta ÚTIL o CORRECTA . ¡¡Muchas gracias!! VCP3, VCP4, VCP5-DCV (VCP550), vExpert 2010, 2014 BLOG: http://communities.vmware.com/blogs/VirtuallyAnITNoob
0 Kudos
kdbinger
Enthusiast
Enthusiast

Thank you Pablo all this is helpful.

btw, I do not see anyway to give credit to your answers.

0 Kudos