I just upgraded to SCOM 2022, which has now broken this MP for me. The watchers all alert with various Events stating the following:
ERROR. Message: System.Exception: Unable to acquire authorization token. Possible connectivity issue.
or
Waiting for access token to be returned without a timeout.
The M365 Connection State monitor also fails with:
Error: Exception (1): Unable to acquire authorization token. Possible connectivity issue. Exception: Request to the endpoint timed out. Exception (2): Request to the endpoint timed out. Exception (3): A task was canceled.
I tried all of the following but none of this hasn't made any difference:
- re-entered Client Secret
- rebooted Management Server
- rebooted watchers
- upgraded clients to SCOM 2022
- downgraded clients back to SCOM 2019 UR3
- As per new v3 documentation (new details) modified Redirect URI to https://localhost
- As per new v3 documentation (new details) modified Allow public client flows
- Created a new Client Secret and changed the Subscription to use it (this seemed to be limited to 2 years now versus the existing which is not limited in end date)
I'm out of ideas now, short of deleting the entire App registration and creating it again, which I would rather not if possible!
Please help!
UPDATE: the respective Management Server and agent config files had been overwritten - updated them and restarted services and all working now!