Hyper-V 2012R2 - Dynamic VM Discovery

QND.Hyperv.2012R2.VirtualMachineDiscovery (Discovery)

Element properties:

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

Object Discovery Details:

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

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource QND.Hyperv.2012R2.VM.DynamicDiscovery.DSType Default

Source Code:

<Discovery ID="QND.Hyperv.2012R2.VirtualMachineDiscovery" Enabled="onEssentialMonitoring" Target="Hyperv2012R2!Microsoft.Windows.HyperV.2012.R2.ServerRole" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Hyperv2012R2!Microsoft.Windows.HyperV.2012.R2.VirtualMachine">
<Property TypeID="QND.Hyperv.2012R2.VM" PropertyID="VirtualMachineId"/>
<Property TypeID="QND.Hyperv.2012R2.VM" PropertyID="VirtualMachineName"/>
<Property TypeID="QND.Hyperv.2012R2.VM" PropertyID="HostName"/>
<Property TypeID="QND.Hyperv.2012R2.VM" PropertyID="VMComputerName"/>
</DiscoveryClass>
<!--
<DiscoveryClass TypeID="Hyperv2012R2!Microsoft.Windows.HyperV.2012.R2.VirtualDrive">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="DeviceId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="Name" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="VirtualMachineName" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="ConnectedControllerName" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="ImageFile" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="DriveType" />
</DiscoveryClass>
<DiscoveryClass TypeID="Hyperv2012R2!Microsoft.Windows.HyperV.2012.R2.VirtualNetworkAdapter">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="DeviceId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="Name" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="VirtualMachineName" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualNetworkAdapter" PropertyID="ConnectedNetworkId" />
<Property TypeID="HypervLib!Microsoft.Windows.HyperV.VirtualNetworkAdapter" PropertyID="ConnectedNetworkName" />
</DiscoveryClass> -->
<!-- bogus entry to fool VSAE and force the inclusion of WSLib
<DiscoveryClass TypeID="WSLib!Microsoft.Windows.Server.6.2.Computer" /> -->
<DiscoveryClass TypeID="SHL!System.ComputerHardware"/>
<DiscoveryRelationship TypeID="SC!Microsoft.SystemCenter.HealthServiceShouldManageEntity"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="QND.Hyperv.2012R2.VM.DynamicDiscovery.DSType">
<TraceLevel>2</TraceLevel>
<TimeoutSeconds>600</TimeoutSeconds>
<TargetComputer>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</TargetComputer>
</DataSource>
</Discovery>