MSSQL 2016: Populate SQL Server 2016 Mirroring Groups Group

Microsoft.SQLServer.2016.MirroringGroupsGroup.Discovery (Discovery)

This discovery rule populates the SQL Server 2016 Mirroring Groups Group group with all SQL Server 2016 Mirroring Groups.

Knowledge Base article:

Summary

This discovery rule populates the SQL Server 2016 Mirroring Groups Group group with all SQL Server 2016 Mirroring Groups.

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Element properties:

TargetMicrosoft.SQLServer.2016.MirroringGroupsGroup
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.SystemCenter.GroupPopulator Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2016.MirroringGroupsGroup.Discovery" Target="Views!Microsoft.SQLServer.2016.MirroringGroupsGroup" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Views!Microsoft.SQLServer.2016.MirroringGroupsGroup"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Mirroring!Microsoft.SQLServer.2016.Mirroring.Group"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="Microsoft.SQLServer.2016.MirroringGroupsGroupContainsMirroringGroup"]$</RelationshipClass>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>