This rule determines the number of mailboxes that exist under M365 and the associated organization's location.
This rule utilizes the Microsoft Graph API to determine the number of mailboxes that exist under M365 and the associated organization's location.
Target | Microsoft.SystemCenter.M365.WatcherNodeApplication.M365MailFlow |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DataSource | DataSource | Microsoft.SystemCenter.M365.DataSource.MailboxCountM365 | Default |
System.Performance.DataGenericMapper | ConditionDetection | System.Performance.DataGenericMapper | Default |
Microsoft.SystemCenter.CollectPerformanceData | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.SystemCenter.M365.Rules.MailboxCountM365Rule" Enabled="true" Target="Microsoft.SystemCenter.M365.WatcherNodeApplication.M365MailFlow" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DataSource" TypeID="Microsoft.SystemCenter.M365.DataSource.MailboxCountM365">
<IntervalSeconds>900</IntervalSeconds>
<AzureADEndpoint>$Target/Host/Property[Type="Microsoft.SystemCenter.M365.WatcherNodeApplication"]/AzureADEndpoint$</AzureADEndpoint>
<GraphEndpoint>$Target/Host/Property[Type="Microsoft.SystemCenter.M365.WatcherNodeApplication"]/GraphEndpoint$</GraphEndpoint>
<TenantId>$Target/Host/Property[Type="Microsoft.SystemCenter.M365.WatcherNodeApplication"]/TenantId$</TenantId>
<ApplicationClientId>$RunAs[Name="Microsoft.SystemCenter.M365.RunAsProfile.ApplicationClient"]/UserName$</ApplicationClientId>
<ApplicationClientCredentials>$RunAs[Name="Microsoft.SystemCenter.M365.RunAsProfile.ApplicationClient"]/Password$</ApplicationClientCredentials>
<DelegatedUserId>$RunAs[Name="Microsoft.SystemCenter.M365.RunAsProfile.DelegatedMailSender"]/UserName$</DelegatedUserId>
<DelegatedUserCredentials>$RunAs[Name="Microsoft.SystemCenter.M365.RunAsProfile.DelegatedMailSender"]/Password$</DelegatedUserCredentials>
</DataSource>
</DataSources>
<ConditionDetection ID="System.Performance.DataGenericMapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>Microsoft 365 Mailbox Count M365</ObjectName>
<CounterName>Mailbox Count</CounterName>
<InstanceName>$Data/Property[@Name='CountryLetterCode']$</InstanceName>
<Value>$Data/Property[@Name='MailboxCount']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="Microsoft.SystemCenter.CollectPerformanceData" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>