MSSQL 2016: General Always On Discovery

Microsoft.SQLServer.2016.AlwaysOn.GeneralAlwaysOnDiscovery (Discovery)

Discovery of Always On objects

Knowledge Base article:

Summary

This is discovery for Microsoft SQL Server 2016 Always On objects including Availability Groups and Availability Replicas

Overridable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

14400

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Element properties:

TargetMicrosoft.SQLServer.2016.AlwaysOn.AlwaysOnSeed
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
PowerShellDiscoveryProvider DataSource Microsoft.SQLServer.2016.AlwaysOn.CommandExecuterDataSource Microsoft.SQLServer.DiscoveryAccount

Source Code:

<Discovery ID="Microsoft.SQLServer.2016.AlwaysOn.GeneralAlwaysOnDiscovery" Enabled="true" Target="Microsoft.SQLServer.2016.AlwaysOn.AlwaysOnSeed" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2016.AlwaysOn.AvailabilityGroup"/>
</DiscoveryTypes>
<DataSource ID="PowerShellDiscoveryProvider" RunAs="GPMP!Microsoft.SQLServer.DiscoveryAccount" TypeID="Microsoft.SQLServer.2016.AlwaysOn.CommandExecuterDataSource">
<IntervalSeconds>14400</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>