Office365 monitor errors

book

Article ID: 198381

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

Getting the following error in Infrastructure Agent Office365 monitor

6/19/20 03:34:44 PM EDT [ERROR] [IntroscopeAgent.RESTMon] Failed : HTTP error code : 401 Unauthorized
 https://manage.office.com:443/api/v1.0/xxxxxxxxxxxx/ServiceComms/CurrentStatus
 Cache-Control: no-cache
 Pragma: no-cache
 Expires: -1
 Server: Microsoft-IIS/10.0
 Server: Microsoft-IIS/10.0
 WWW-Authenticate: Bearer
 X-AspNet-Version: 4.0.30319
 X-Powered-By: ASP.NET
 X-Powered-By: ASP.NET
 Date: Fri, 19 Jun 2020 19:34:42 GMT
 Content-Length: 0
  retry :0


6/19/20 03:34:43 PM EDT [DEBUG] [IntroscopeAgent.RESTMon] response: {} : {
  "error": {
    "code": "Authorization_RequestDenied",
    "message": "Insufficient privileges to complete the operation.",
    "innerError": {
      "date": "2020-06-19T19:34:42",
      "request-id": "xxxxxxxxxxxx"
    }
  }
}
6/19/20 03:34:43 PM EDT [ERROR] [IntroscopeAgent.RESTMon] Failed : HTTP error code : 403 Forbidden
 https://graph.microsoft.com:443/v1.0/subscribedSkus
 Cache-Control: private
 Content-Type: application/json
 request-id: xxxxxxxx
 client-request-id: xxxxxxxx
 x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"South Central US","Slice":"SliceC","Ring":"4","ScaleUnit":"003","RoleInstance":"AGSFE_IN_21"}}
 Strict-Transport-Security: max-age=31536000
 Date: Fri, 19 Jun 2020 19:34:41 GMT
 Content-Length: 263
 {
  "error": {
    "code": "Authorization_RequestDenied",
    "message": "Insufficient privileges to complete the operation.",
    "innerError": {
      "date": "2020-06-19T19:34:42",
      "request-id": "xxxxxxxxxxxx"
    }
  }

Environment

Release : 10.7.0

Component : APM Agents

Resolution

API Permissions required to collect Office365 Service health and Service Activity metrics

Office365 Service Management API
ServiceHealth.Read - to read the service health

Grap API
Organization.Read.All - to read Subscribed SKUs

Reports.Read.All - to read usage and activity reports

 

NOTE: Need to make sure the type is correct the above permissions

 

Attachments