1. How to get notified when new VM is created (or deleted) on Hyper-V.
2. How to get notified when any memory/CPU/disk is added (or deleted) on any VM(s).
In general:
- Get notified when any changes happens to Hyper-V host.
- Get notified when any changes happens on any VMs.
Our target servers are Windows Server(2008, 2008 R2, 2012, and 2012 R2)
We tried to get the notification using "Event Viewer" on different Windows servers (2008, 2008 R2, 2012, and 2012 R2)
We were able to get event-logs only on one of our 2012 R2 server as described below on creation/deletion of VMs (on another 2012 R2 server, we did not got any such event, Is there any setting required on host computer to get Hyper-V event-logs in "Event Viewer"?)
Log Name: Microsoft-Windows-Hyper-V-VMMS-Admin
Source: Microsoft-Windows-Hyper-V-VMMS
Date: 12/18/2014 1:21:45 AM
Event ID: 13002
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: HPHyper-V.COMPUTERNAME.lab
Description:
A new virtual machine 'TestVM' was created. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)
-----------------------------------------------------------------------------------------------------
Log Name: Microsoft-Windows-Hyper-V-VMMS-Admin
Source: Microsoft-Windows-Hyper-V-VMMS
Date: 12/17/2014 10:57:01 PM
Event ID: 13003
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: HPHyper-V.COMPUTERNAME.lab
Description: The virtual machine 'TestVM' was deleted. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)