M365 MP SCOM - The alerts I can't explain

Верещака Андрій 0 Reputation points
2023-11-30T15:41:52.1533333+00:00

Hi !
We use SCOM2019UR4

The M365 MP for SCOM (10.2.0.0) has been installed.

All prerequisites were done as it was described in the Manual.

The Azure Application with all permissions has been created as well as a bunch of users.

One of them was dedicated only for Office365 instance Health Check . The totally new user with 2 assigned roles - Global reader and Reports Reader

All synthetic transaction work fine.

But there are 2 issues there I can't either explain.

M365 Connection State Monitor is always in Critical state. I checked twice all the settings , no errors in them. Also I still haven't obtained data from MS Admin Center to SCOM. I am able to read a data from MSAC in a browser session using the same credentials I applied to MP . Here is an error -


MessageError: Exception (1): The remote server returned an error: (403) Forbidden. Stack Trace (1): at System.Net.HttpWebRequest.GetResponse() at Microsoft.SystemCenter.M365.ManagedModules.Helpers.SimpleRestClient.MakeCallWithResponseInternal(String url, Dictionary2 headers, String postData, String httpVerb, String contentType) at Microsoft.SystemCenter.M365.ManagedModules.Helpers.SimpleRestClient.MakeCallWithResponse(String url, Dictionary2 headers, String postData, String httpVerb, String contentType) at Microsoft.SystemCenter.M365.ManagedModules.Helpers.RestManagedModule1.InvokeRestMethod(String uri, String verb, String strPostData, String contentType, Dictionary2 customHeaders) at Microsoft.SystemCenter.M365.ManagedModules.ConnectionState.DoWork(Dictionary`2 dictionary) ApplicationClientId=66af0d22-4a9d-476a-8533-d1dcbeee7b3c

EndPointMessage Account doesn't have administrator permissions


The same with M365 Mailbox Count M365 Monitor - it turns in critical state and returns an error


This monitor is unable to determine the number of mailboxes
that exist under M365 and/or the associated organization's location.Unable
to determine Microsoft 365 mailbox count. Reason: ERROR - Unable to get mailbox
report data. State: Critical. Exception: System.Net.WebException: The remote
server returned an error: (403) Forbidden.at
System.Net.HttpWebRequest.GetResponse()at
Microsoft.SystemCenter.M365.ManagedModules.Helpers.SimpleRestClient.MakeCallWithResponseInternal(String
url, Dictionary2 headers, String postData, String httpVerb, String contentType)at Microsoft.SystemCenter.M365.ManagedModules.Helpers.SimpleRestClient.MakeCallWithResponse(String url, Dictionary2 headers, String postData, String httpVerb, String
contentType)at
Microsoft.SystemCenter.M365.ManagedModules.Helpers.RestManagedModule1.InvokeRestMethod(String uri, String verb, String strPostData, String contentType, Dictionary2
customHeaders)at
Microsoft.SystemCenter.M365.ManagedModules.MailboxCountM365.GetMailboxReport().


What may be wrong with it ? What roles or rights should I apply to this user to get the info from MSAC ?

Thanks in advance .

Andrii.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,493 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marius Ene 335 Reputation points
    2024-01-06T01:09:19.1666667+00:00

    Hello,

    Based on what I saw in the MP guide, at least for the Mailbox count monitor, the minimum Graph API permissions required are Organization.Read.All and Reports.Read.All.

    Here is a link with a list of the permissions: https://learn.microsoft.com/en-us/graph/permissions-reference

    Double check that you have the below permissions setup correctly:

    User's image

    Good luck!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.