Hyper-V 2012 Virtual Machine Discovery

Microsoft.Windows.HyperV.2012.VirtualMachineDiscovery (Discovery)

Discovers Microsoft Windows Hyper-V 2012 Virtual Machines

Knowledge Base article:

Summary

This discovery enables the ability to discover Hyper-V 2012 Virtual Machines.

The discovery runs every two hours by default but it can be re-configured using the 'IntervalSeconds' parameter.

Element properties:

TargetMicrosoft.Windows.HyperV.2012.ServerRole
EnabledTrue
Frequency43200
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.Windows.HyperV.2012.VirtualMachineDiscoveryDataSourceModule Default

Source Code:

<Discovery ID="Microsoft.Windows.HyperV.2012.VirtualMachineDiscovery" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.HyperV.2012.ServerRole" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.HyperV.2012.VirtualMachine">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="ServerName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="ComputerName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.Windows.HyperV.2012.VirtualDrive">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="DeviceId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="Name"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="VirtualMachineName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="ConnectedControllerName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="ImageFile"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="DriveType"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.Windows.HyperV.2012.VirtualNetworkAdapter">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="DeviceId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="Name"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="VirtualMachineName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualNetworkAdapter" PropertyID="ConnectedNetworkId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualNetworkAdapter" PropertyID="ConnectedNetworkName"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Microsoft.Windows.Server.6.2.LogicalDisk.Contains.HyperV.VirtualDrive"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="Microsoft.Windows.HyperV.2012.VirtualMachineDiscoveryDataSourceModule">
<IntervalSeconds>43200</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>