Microsoft Azure SQL User Databases Discovery

Microsoft.SqlServer.Azure.Discovery.UserDatabases (Discovery)

This workflow discovers user databases hosted in Microsoft Azure SQL Database Cloud Service.

Knowledge Base article:

Summary

This workflow discovers user databases hosted in Microsoft Azure SQL Database Cloud Service.

Overrideable 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

Monitoring Mode

Defines monitoring mode.

$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/MonitoringMode$

Request timeout (seconds)

Gets or sets the timespan to wait before the request times out.

60

Synchronization Time

The synchronization time specified by using a 24-hour format. May be omitted.

 

Timeout (seconds)

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

600

Timeout for database connection (seconds)

A period in which the workflow must establish connection to the database.

30

Element properties:

TargetMicrosoft.SqlServer.Azure.Server
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SqlServer.Azure.DataSource.DatabaseDiscovery Default

Source Code:

<Discovery ID="Microsoft.SqlServer.Azure.Discovery.UserDatabases" Target="Microsoft.SqlServer.Azure.Server" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SqlServer.Azure.Database"/>
<DiscoveryClass TypeID="Microsoft.SqlServer.Azure.UserDatabase"/>
<DiscoveryClass TypeID="Microsoft.SqlServer.Azure.ElasticDatabase"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SqlServer.Azure.DataSource.DatabaseDiscovery">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<ServerName>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/ServerName$</ServerName>
<DatabaseFilterMode>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/DatabaseFilterMode$</DatabaseFilterMode>
<DatabaseExcludeList>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/DatabaseExcludeList$</DatabaseExcludeList>
<UseRest>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/UseREST$</UseRest>
<MonitoringMode>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/MonitoringMode$</MonitoringMode>
<AuthorityDetails>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/AuthorityDetails$</AuthorityDetails>
<SubscriptionId>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/Subscription$</SubscriptionId>
<ResourceGroupName>$Target/Property[Type="Microsoft.SqlServer.Azure.Server"]/ResourceGroupName$</ResourceGroupName>
<TimeoutSeconds>600</TimeoutSeconds>
<SqlTimeoutSeconds>30</SqlTimeoutSeconds>
<HttpTimeoutSeconds>60</HttpTimeoutSeconds>
</DataSource>
</Discovery>