古いサービス正常性の通知を確認する

azure
Published: 2025-10-08

はじめに

Azure にはサービス正常性という仕組みがあります。Microsoft からサブスクリプション利用者に対する通知は、このサービス正常性を通じて行われます。

Azure Service Health ポータル

Azure ポータル上のサービス正常性の通知を見ることができる画面では、最大で過去3か月前までの内容を確認できます。

リソース正常性の画面

では「3か月を過ぎた昔の通知をどうやって見るか」というのが本エントリーです。

古い通知を見る方法

3か月を過ぎた昔の通知を見るためには Events - List By Subscription Idの API を直叩きする必要があります

この API を叩く際に queryStartTime で以前の日時を与えることで、古いサービス正常性の通知を見ることができます。例えば180日前からの情報を見たい場合には次のようなコマンドになります。180日=約6か月の通知が含まれていることが確認できます。

$ErrorActionPreference = "stop"

$sub = Get-AzSubscription -SubscriptionId "YOUR-SUBSCRIPTION-ID" | Select-AzSubscription
$date = Get-Date -Format "MM/dd/yyyy" ((Get-date).AddDays(-180))
$res =Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$($sub.Subscription.Id)/providers/Microsoft.ResourceHealth/events?api-version=2025-05-01&`$filter=Properties/EventType eq 'HealthAdvisory'&queryStartTime=$date"
($res.Content | ConvertFrom-Json).value | Select-Object name, @{Label="lastUpdateTime"; Expression={$_.Properties.lastUpdateTime}},@{Label="title"; Expression={$_.Properties.title}}

name     lastUpdateTime      title
----     --------------      -----
VT8Z-3B8 2025/10/04 14:54:00 Data Collector API will be retired on 14 September 2026  transition to DCR-based custom 
WS6X-DR0 2025/10/02 23:22:10 Action required: Migrate Azure VPN Gateway connections using SSTP to IKEv2 or OpenVPN
VVWC-7Q0 2025/09/22 18:25:26 Non-Impactful Maintenance advisory for your Azure Virtual Desktop service in all regions.
RKLJ-BR8 2025/09/22 17:43:34 Action required: Transition to built-in Azure Monitor alerts for Azure Backup
WSTH-FB8 2025/09/19 8:51:42  Azure Product Retirement: End of life announcement for default internet outbound access f
BK36-VX8 2025/09/10 20:34:37 Action required: Transition your Azure Synapse Analytics workspaces to private links befo
NM67-LB0 2025/09/10 17:46:06 Reminder: Action required: Policy updates impacted Azure Container Apps managed certifica
XL87-1X8 2025/09/08 18:09:51 Action required: Convert your OS disks to Standard SSD or Premium SSD before 8 September 
8T4H-DXZ 2025/07/29 1:14:27  Action required: Update to DesktopVirtualization API v. 2024-04-03 or the Latest Preview 
YT36-RB8 2025/07/23 12:35:34 Scheduled Query Rules version 2024-01-01-preview will be retired on 17 October 2025. Tran
3KJ7-VV0 2025/07/23 0:15:38  Non-Impactful Maintenance advisory for your Azure Virtual Desktop service in all regions.
6TH2-BV8 2025/07/15 19:22:49 Upgrade to Standard SKU public IP addresses in Azure by 30 September 2025Basic SKU will 
P_3R-5VZ 2025/07/08 19:09:10 Azure Product Retirement: End of life announcement for default internet outbound access f
DTC7-B_0 2025/07/03 2:10:39  Action required: Upgrade Azure SQL Database 2014-04-01 APIs to a newer version by 31 Octo
8_VG-7BG 2025/06/12 23:37:11 Action required: Update to enhance RDP short path for Microsoft Dev Box
HVQK-V_G 2025/06/11 9:31:54  Removal of select Cipher Suites for Azure VM Image Builder
0T8Y-PWZ 2025/04/24 8:30:55  Retirement notice: Transition Azure Batch pools to the Simplified compute node communicat
0M8J-LQZ 2025/04/23 19:20:25 Retirement notice: Network security group flow logs in Azure Network Watcher will be reti
8MJ1-1Q8 2025/04/22 8:47:52  Azure Product Retirement: End of life announcement for Ubuntu 20.04 LTS support for Azure
LT06-9XG 2025/04/15 2:40:25  Transition to using standard tests for single-step availability testing in Azure Monitor 

さかのぼれる範囲

この API を利用すると最長で1年前までさかのぼってサービス正常性の通知を見れます。以下の様に 720日前の日付を指定して API を叩いても、API で取得した情報の最後のデータは約1年前になりました。

$date = Get-Date -Format "MM/dd/yyyy" ((Get-date).AddDays(-720))
$res =Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$($sub.Subscription.Id)/providers/Microsoft.ResourceHealth/events?api-version=2025-05-01&`$filter=Properties/EventType eq 'HealthAdvisory'&queryStartTime=$date"
($res.Content | ConvertFrom-Json).value[-1] | Select-Object name, @{Label="lastUpdateTime"; Expression={$_.Properties.lastUpdateTime}},@{Label="title"; Expression={$_.Properties.title}}


name     lastUpdateTime      title
----     --------------      -----
TL91-7V8 2024/10/29 20:49:13 Retirement notice: End of support for .NET 6 on Windows Server 2022 Marketplace media

ドキュメントにも1年間保存されていることが明記されています

90 日より前の問題は表示されませんが、1 年間保存され、API クエリを使用してアクセスできます。

Service Health イベントの保持

おわりに

3か月を超えてサービス正常性の通知を確認する方法をまとめました。そもそも、サービス正常性アラートを仕掛けてサービス正常性をメールで受信していれば、3か月を超えた古い通知もメールで確認ができます。ですので API 直叩きの方法を使うことはほぼないと思いますが、知っておいて損はないかなと思います。

Note

  • 当サイトは個人のブログです。このブログに示されている見解や意見は個人的なものであり、所属組織の見解や意見を表明するものではありません。
  • 公開情報を踏まえて正確な情報を掲載するよう努めますが、その内容の完全性や正確性、有用性、安全性、最新性について一切保証しません。
  • 添付文章やリンク先などを含む本サイトの内容は作成時点でのものであり、予告なく変更される場合があります。