I would like to create an alarm definition for when a virtual machine is deleted from the inventory . so i want to create for all vm in vcenter . is it possible and how create ?
Yes, if you create alarm at vCenter server level, it's applicable for all the VMs by default in your inventory.
update.
update ?
select your vCenter server in vSphere Web Client inventory
go to Manage -> Alarm Definition -> Click on Green Plus :smileyplus: symbols to add new alarm definition.
Name and describe the alarms.
Monitor for: Event
Like following screen
Click on Next
and Add event 'VM Removed'
see following screenshot
Specify rest of the parameters in this screen as per your need.
Click on next, and specify Actions like send menotificaion email etc.
this is for all virtual machines ? so i will create one rule for all virtual machine . ?
Yes, if you create alarm at vCenter server level, it's applicable for all the VMs by default in your inventory.