Project

PSWinDocumentation.O365HealthService

PSWinDocumentation.O365HealthService is a Powershell module that has a single goal of getting Office 365 Health Status

Stars23
Forks11
Open issues1
PowerShell Gallery downloads693713
Releasev1.0.4
Language: PowerShell Updated: 2026-02-14T21:45:05.0000000+00:00

Curated Examples

Read service health status

Read Microsoft 365 service health data into PowerShell.

This pattern is useful when you want a quick console review before building a report.

It is adapted from Examples/Example-Office365Status.ps1.

Example

Import-Module PSWinDocumentation.O365HealthService

$applicationId = '<application-id>'
$applicationKey = '<client-secret>'
$tenantDomain = 'contoso.com'

$health = Get-Office365Health -ApplicationID $applicationId -ApplicationKey $applicationKey -TenantDomain $tenantDomain

$health.CurrentStatus | Format-Table Service, ServiceStatus, StatusTime -AutoSize

What this demonstrates

  • using explicit application registration values
  • reading service health without generating files
  • keeping tenant-specific values out of the published example

Source