M365 Supplemental OneDrive Folder Discovery

M365SONE.OneDrive.Discovery (Discovery)

Description for the new discovery.

Knowledge Base article:

Summary

Will discover the OneDrive instance.

Additional

None.

External

https://MonitoringGuys.com

Overridable Parameters

Name

Description

Default Value

IntervalSeconds

The frequncy of the workflow.

900

PoshLibraryPath

For customer support engineer use only.

ProbeActionTimeoutSeconds

If the workflow module does not exit gracefully by this time limit, the module will be forced to terminate.

180

SyncTime

This can be set to force a workflow to synchronize its Interval to a specific start time. If no SyncTime value is provided to the workflow, the workflow will be initiated at the agent's earliest opportunity after receiving a configuration change or restarting. Typically no SyncTime is preferred. Format is 00:00. Example for 5:36pm: 17:36. Example for 2:15am: 02:15.

WriteToEventLog

This will enable/disable script logging to the Operations Manager event log.

false

Element properties:

TargetM365SL.WatcherNode
EnabledTrue
Frequency900
RemotableFalse

Object Discovery Details:

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

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource M365SONE.OneDrive.POSH.Discovery.DS Default

Source Code:

<Discovery ID="M365SONE.OneDrive.Discovery" Target="M365SL!M365SL.WatcherNode" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="M365SONE.OneDrive.Folder">
<Property TypeID="M365SONE.OneDrive.Folder" PropertyID="ID"/>
<Property TypeID="M365SONE.OneDrive.Folder" PropertyID="Name"/>
<Property TypeID="M365SONE.OneDrive.Folder" PropertyID="WebURL"/>
<Property TypeID="M365SONE.OneDrive.Folder" PropertyID="DriveType"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="M365SONE.M365SLWatcherNodeHostsM365SONE.OneDrive"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="M365SONE.OneDrive.POSH.Discovery.DS">
<ApiTokenScopeURL>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/ApiTokenScopeURL$</ApiTokenScopeURL>
<ApiTokenURL>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/ApiTokenURL$</ApiTokenURL>
<ApiURL>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/ApiURL$</ApiURL>
<IntervalSeconds>900</IntervalSeconds>
<MgmtGroupRegKey>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/MgmtGroupRegKey$</MgmtGroupRegKey>
<PoshLibraryPath/>
<PrincipalName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</PrincipalName>
<ProbeActionTimeoutSeconds>180</ProbeActionTimeoutSeconds>
<SyncTime/>
<TenantName>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/TenantName$</TenantName>
<TLSVersion>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/TLSVersion$</TLSVersion>
<WorkflowName>M365SONE.OneDrive.POSH.Discovery.DS</WorkflowName>
<WriteToEventLog>false</WriteToEventLog>
</DataSource>
</Discovery>