Commands › Exchange Online

New-AvailabilityReportOutage

Exchange Online ExchangeOnlineManagement New-*

Create an outage to add unrecorded issues to availability reporting.

Quick start script

# New-AvailabilityReportOutage — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-AvailabilityReportOutage
$before | Format-List

# 3. Make the change (dry run first)
New-AvailabilityReportOutage -SiteName <String> -Comment <String> -DowntimeMinutes <Double> -WhatIf
New-AvailabilityReportOutage -SiteName <String> -Comment <String> -DowntimeMinutes <Double>

# 4. Verify and diff
$after = Get-AvailabilityReportOutage
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-AvailabilityReportOutage [-SiteName] <String> -Comment <String> -DowntimeMinutes <Double> -ReportDate <ExDateTime>
 [-Confirm]
 [-Force]
 [-ReportingDatabase <String>]
 [-ReportingServer <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-SiteName String yes The SiteName parameter specifies the name of the Active Directory site to associate the outage report with.
-Comment String yes The Comment parameter specifies why the outage was inserted.
-DowntimeMinutes Double yes The DowntimeMinutes parameter specifies the number of minutes of downtime to insert into the outage report.
-ReportDate ExDateTime yes The ReportDate parameter specifies the date to query for the outage report.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-ReportingDatabase String The ReportingDatabase parameter specifies the name of the database on the reporting server.
-ReportingServer Fqdn The ReportingServer parameter specifies the name of the reporting database server to connect to.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.