Graph API Service Announcements (Health/Status) for Teams

New Contributor

Hi, I just started working with Graph API and I'm a bit lost... 

I need to get the service health status for Microsoft Teams (or, alternatively, for all Microsoft 365... I can filter what I need later). 

 

I registered an application with the ServiceHealth.Read.All permission at the app level (we can't use delegate permissions). 

Questions: 

1) Is it possible to use a generic Power BI connector (like ODBC or OData feeds) to get that information? If so, in what format? 

2) I have been trying to use an R script to see if I can get the notifications, but I get only 40x errors. 

 

Specifically: 

a) Generic request:

Endpoint_request <- AzureGraph::call_graph_endpoint(Token, options = list(), body = NULL, api_version = Version, operation = "admin/serviceAnnouncement/healthOverviews", content_type = "application/json")

Call <- call_graph_url(Token,
Endpoint,
encode = "json",
content_type = "application/json",
http_verb = "GET",
http_status_handler = "message",
includeResourceData = TRUE,
simplify = FALSE,
auto_refresh = TRUE,
verbose()
)

 

And this is what I get:

 

-> GET / HTTP/1.1
-> Host: graph.microsoft.com
-> User-Agent: libcurl/7.64.1 r-curl/4.3.2 httr/1.4.2
-> Accept-Encoding: deflate, gzip
-> Accept: application/json, text/xml, application/xml, */*
-> Authorization: Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6InNGbEZpZ3RLa2VGckcwb1g0SE5QOGFiOVowTzJGMlFSUG5RX1NJaWpnTzgiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC82MjE1ZWJkNy1iMzdkLTRiYzctYTAzMi0xYTJlYTkwZGMwYjkvIiwiaWF0IjoxNjQ5OTM4MjI4LCJuYmYiOjE2NDk5MzgyMjgsImV4cCI6MTY0OTk0MjEyOCwiYWlvIjoiRTJaZ1lIanAvK0JVdHQ2MGhKZ1B5KzdsZlB0c0JnQT0iLCJhcHB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fiQdYTCpfF1NFQhkbtgxyn1cxO0aGsxv-kDgTlMtljHbOjri9cTOdKPBcDpN7griTn5gZWLkOiMyto0nenfDJnWXCXuNdEUB-9uc89BxxxxNl9CiTtAcIKAV8MAfICoWEBwhaMD1SN7g
-> Content-Type: application/json
-> 
<- HTTP/1.1 301 Moved Permanently
<- Location: https://developer.microsoft.com/graph
<- Strict-Transport-Security: max-age=31536000
<- request-id: d86971f1-5ea1-4d4f-9323-8a7d7e5b68b4
<- client-request-id: d86971f1-5ea1-4d4f-9323-8a7d7e5b68b4
<- x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Canada East","Slice":"E","Ring":"2","ScaleUnit":"002","RoleInstance":"QB1PEPF00002191"}}
<- Date: Thu, 14 Apr 2022 12:56:19 GMT
<- Content-Length: 0
<- 
-> GET /graph HTTP/1.1
-> Host: developer.microsoft.com
-> User-Agent: libcurl/7.64.1 r-curl/4.3.2 httr/1.4.2
-> Accept-Encoding: deflate, gzip
-> Cookie: MarketplaceSelectedLocale=en-us; EnvironmentType=cHJvZHVjdGlvbg==; Session-Id=b49e95bc-4255-4f52-91d1-a6c98b2337b2
-> Accept: application/json, text/xml, application/xml, */*
-> Authorization: Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6InNGbEZpZ3RLa2VGckcwb1g0SE5QOGFiOVowTzJGMlFSUG5RX1NJaWpnTzgiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC82MjE1ZWJkNy1iMzdkLTRiYzctYTAzMi0xYTJlYTkwZGMwYjkvIiwiaWF0IjoxNjQ5OTM4MjI4LCJuYmYiOjE2NDk5MzgyMjgsImV4cCI6MTY0OTk0MjEyOC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-UmrVAIXFSazu2zEYEhONUx44XhxwCm6AZEfg85K9qMN6VM4uyzkyW-rmsGCYS07WXnFfiQdYTCpfF1NFQhkbtgxyn1cxO0aGsxv-kDgTlMtljHbOjri9cTOdKPBcDpN7griTn5gZWLkOiMyto0nenfDJnWXCXuNdEUB-9uc89BxxxxNl9CiTtAcIKAV8MAfICoWEBwhaMD1SN7g
-> Content-Type: application/json
-> 
<- HTTP/1.1 301 Moved Permanently
<- Cache-Control: no-cache, no-store
<- Pragma: no-cache
<- Content-Length: 129
<- Content-Type: text/html; charset=utf-8
<- Expires: -1
<- Location: /en-us/graph
<- Server: Microsoft-IIS/10.0
<- X-Frame-Options: SAMEORIGIN
<- X-AspNetMvc-Version: 5.2
<- X-AspNet-Version: 4.0.30319
<- MS-CorrelationId: 62aa589d-c7b0-4f21-9670-1e0a9b2921e5
<- X-Powered-By: ASP.NET
<- X-UA-Compatible: IE=edge
<- Date: Thu, 14 Apr 2022 12:56:20 GMT
<- Connection: keep-alive
<- Set-Cookie: EnvironmentType=cHJvZHVjdGlvbg==; path=/;SameSite=None; secure; HttpOnly
<- Set-Cookie: MarketplaceSelectedLocale=en-us; expires=Fri, 14-Apr-2023 12:56:20 GMT; path=/;SameSite=None; secure; HttpOnly
<- Strict-Transport-Security: max-age=31536000; includeSubDomains
<- 
-> GET /en-us/graph HTTP/1.1
-> Host: developer.microsoft.com
-> User-Agent: libcurl/7.64.1 r-curl/4.3.2 httr/1.4.2
-> Accept-Encoding: deflate, gzip
-> Cookie: MarketplaceSelectedLocale=en-us; EnvironmentType=cHJvZHVjdGlvbg==; Session-Id=b49e95bc-4255-4f52-91d1-a6c98b2337b2
-> Accept: application/json, text/xml, application/xml, */*
-> Authorization: Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6InNGbEZpZ3RLa2VGckcwb1g0SE5QOGFiOVowTzJGMlFSUG5RX1NJaWpnTzgiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHT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GkiOiJEbjR0U3RNcTZrQ0ItMXpjWExBTkFBIiwidmVyIjoiMS4wIiwid2lkcyI6WyIwOTk3YTFkMC0wZDFkLTRhY2ItYjQwOC1kNWNhNzMxMjFlOTAiXSwieG1zX3RjZHQiOjE0NTgyMzg2ODd9.l70mmhSatRe-kFUt3np1vRfeS2dLZaHouoHEUfPoZqoamP396hHw9Jvz0gBfClFAx40meZ8YTIMAfausO_696YXFWPMpSOUbyw2g_l07wEuJUJokKwOm5g4rEHU7Bw4kRm1goF-UmrVAIXFSazu2zEYEhONUx44XhxwCm6AZEfg85K9qMN6VM4uyzkyW-rmsGCYS07WXnFfiQdYTCpfF1NFQhkbtgxyn1cxO0aGsxv-kDgTlMtljHbOjri9cTOdKPBcDpN7griTn5gZWLkOiMyto0nenfDJnWXCXuNdEUB-9uc89BxxxxNl9CiTtAcIKAV8MAfICoWEBwhaMD1SN7g
-> Content-Type: application/json
-> 
<- HTTP/1.1 200 OK
<- Cache-Control: public, max-age=2598, s-maxage=2598
<- Content-Type: text/html; charset=utf-8
<- Expires: Thu, 14 Apr 2022 13:11:51 GMT
<- Last-Modified: Thu, 14 Apr 2022 12:11:51 GMT
<- Server: Microsoft-IIS/10.0
<- X-Frame-Options: DENY
<- X-ResponseUrl: https://developer.microsoft.com/en-us/graph
<- X-AspNetMvc-Version: 5.2
<- MS-CorrelationId: 46e698ad-0615-4a13-819f-85df5cce5457
<- Content-Security-Policy: default-src ;script-src https://cdn.graph.office.net https://www.microsoft.com https://mwf-service.akamaized.net https://partnerresources.azureedge.net https://ajax.aspnetcdn.com https://az725175.vo.msecnd.net *.clarity.ms https://teams.microsoft.com https://az416426.vo.msecnd.net https://js.monitor.azure.com https://web.vortex.data.microsoft.com https://mem.gfx.ms https://wcpstatic.microsoft.com https://browser.events.data.microsoft.com https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net https://localhost:20444 'unsafe-inline' 'unsafe-eval';img-src https://cdn.graph.office.net https://c1.microsoft.com https://img-prod-cms-rt-microsoft-com.akamaized.net https://c.bing.com https://img-prod-cms-rt-microsoft-com.akamaized.net *.clarity.ms https://devblogs.microsoft.com https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net data:;style-src https://cdn.graph.office.net https://partnerresources.azureedge.net https://www.microsoft.com https://statics-marketingsites-wcus-ms-com.akamaized.net https://statics-marketingsites-eus-ms-com.akamaized.net https://mwf-service.akamaized.net https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net https://localhost:20444 'unsafe-inline';style-src-elem https://cdn.graph.office.net https://partnerresources.azureedge.net https://www.microsoft.com https://statics-marketingsites-wcus-ms-com.akamaized.net https://statics-marketingsites-eus-ms-com.akamaized.net https://mwf-service.akamaized.net https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net https://localhost:20444 'unsafe-inline';font-src https://cdn.graph.office.net https://c.s-microsoft.com https://www.microsoft.com https://partnerresources.azureedge.net https://static2.sharepointonline.com https://spoprod-a.akamaihd.net https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net https://localhost:20444;connect-src https://dc.services.visualstudio.com https://browser.events.data.microsoft.com https://web.vortex.data.microsoft.com *.clarity.ms https://browser.pipe.aria.microsoft.com https://cdn.graph.office.net https://consentreceiverfd-prod.azurefd.net https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net;form-action ;frame-ancestors ;frame-src https://www.microsoft.com https://controls.account.microsoft-dev.com:44308 https://controls.account.microsoft.com:44308 https://developer.microsoft.com https://graphprodblobstorage.blob.core.windows.net;worker-src ;child-src
<- X-Content-Type-Options: nosniff
<- X-AspNet-Version: 4.0.30319
<- X-Powered-By: ASP.NET
<- X-Powered-By: ASP.NET
<- X-UA-Compatible: IE=edge
<- Vary: Accept-Encoding
<- Content-Encoding: gzip
<- Content-Length: 22996
<- Date: Thu, 14 Apr 2022 12:56:20 GMT
<- Connection: keep-alive
<- Strict-Transport-Security: max-age=31536000; includeSubDomains
<- 
OK (HTTP 200). Failed to complete operation. Message:
.

 

However, when I add the name of the service (ex: Microsoft 365 suite) i get this error from the endpoint request: 

 

> Endpoint_request <- AzureGraph::call_graph_endpoint(Token, options = list(), body = NULL, api_version = Version, operation = "admin/serviceAnnouncement/healthOverviews/Microsoft 365 suite", content_type = "application/json")
Error in process_response(res, match.arg(http_status_handler), simplify) : 
  Bad Request (HTTP 400). Failed to complete operation. Message:
.

 

Can someone point me to the right direction? 

 

Thanks in advance! 

 

0 Replies