VMware Cloud Community
atoerper
Enthusiast
Enthusiast

Query VCSA database for VM deletion

Any tips on how to query for a VM deletion task? I've seen posts on how to do it when using SQL DB for vCenter but we are running VCSA 6.5 Update 2.

0 Kudos
5 Replies
daphnissov
Immortal
Immortal

A kitten dies, every time you query the VCDB

Don't query the VCDB. Just don't do it. Use the events and tasks information available in logs or API to search for such an event.

0 Kudos
atoerper
Enthusiast
Enthusiast

Trying to use Get-VIEvent via powershell but it returns:

Error in deserializing body of reply message for operation 'ReadPreviousEvents'

0 Kudos
daphnissov
Immortal
Immortal

Then you should fix that rather than try to find a workaround. What version of vCenter and what version of PowerCLI?

0 Kudos
atoerper
Enthusiast
Enthusiast

vCenter 6.5 U2

VMware PowerCLI 6.5 Release 1

0 Kudos
daphnissov
Immortal
Immortal

You need to upgrade your PowerCLI version to the latest. You must first uninstall PowerCLI 6.5 and then install the latest from the Gallery.

0 Kudos