# Build service health HTML report

Build service health HTML report on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWinDocumentation.O365HealthService

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

[View on GitHub](https://github.com/EvotecIT/PSWinDocumentation.O365HealthService) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWinDocumentation.O365HealthService/releases/tag/v1.0.4) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWinDocumentation.O365HealthService)

Stars**23**

Forks**10**

Open issues**0**

PowerShell Gallery downloads**693781**

Release**v1.0.4**

Language: PowerShell Updated: 2026-02-14

Curated Examples

Render Microsoft 365 service health data into a local HTML report.

This pattern is useful when operations needs a shareable report instead of console output.

It is adapted from `Examples/Example-Office365StatusUsingDashimo.ps1`.

## Example

```powershell
Import-Module PSWinDocumentation.O365HealthService
Import-Module PSWriteHTML

$applicationId = '<application-id>'
$applicationKey = '<client-secret>'
$tenantDomain = 'contoso.com'
$reportPath = Join-Path $PSScriptRoot 'Health.html'

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

Dashboard -FilePath $reportPath {
    TabOption -BorderRadius 0px -BackgroundColorActive DimGrey
    SectionOption -BorderRadius 0px -HeaderBackGroundColor DimGrey
    TableOption -DataStore JavaScript -ArrayJoinString '; ' -ArrayJoin -BoolAsString

    Tab -Name 'Current Status' {
        Section -Name 'Current Status' {
            Table -DataTable $health.CurrentStatus -Filtering {
                TableCondition -Name 'ServiceStatus' -Value 'serviceOperational' -BackgroundColor MintGreen -FailBackgroundColor Salmon
            }
        }
    }

    Tab -Name 'Incidents' {
        Section -Name 'Incidents' {
            Table -DataTable $health.Incidents -Filtering {
                TableCondition -Name 'IsResolved' -Value $true -BackgroundColor MintGreen -FailBackgroundColor Salmon -ComparisonType bool
            }
        }
    }
} -Online -ShowHTML
```

## What this demonstrates

- combining service health collection with PSWriteHTML output
- writing the report to a script-local file
- keeping credentials as placeholders in public documentation

## Source

- [Example-Office365StatusUsingDashimo.ps1](https://github.com/EvotecIT/PSWinDocumentation.O365HealthService/blob/master/Examples/Example-Office365StatusUsingDashimo.ps1)

<!-- PowerForge markdown artifact sha256:F3ADA2634246112FFC3B419BA489A0A958C6FA2FD1B16806D9D1AB065C9B19F6 -->
