Hybrid Connectivity参照資料確認: 2026-09-11

VPN Gateway Troubleshooting

VPN Gateway障害をGateway health→IKE/IPsec→Tunnel→BGP→effective routes→NSG/UDR→applicationの順で切り分ける。

Scope: Microsoft Learn / Azure Architecture Centerの一次資料を2026-09-11時点で確認し、旧来の短い記事を公開運用向けdeep diveへ更新。SKU、region、limits、Preview statusは変わるため、実装直前にOfficial sourcesを再確認してください。

VPN Gateway Troubleshootingを理解するための前提

VPN troubleshootingではConnection=Connectedだけでapplication到達を判断しない。 GatewayDiagnosticLog、TunnelDiagnosticLog、RouteDiagnosticLog、IKEDiagnosticLog等を使いlayer別にevidenceを取得できる。

IKEDiagnosticLogはIKE/IPsec negotiationやdisconnect調査に有効。 RouteDiagnosticLogはBGP connect/disconnectとroute updateを追える。

BGP issueはpeer session、ASN、TCP/179、learned/advertised prefixを分けて確認する。 third-party VPN device固有behaviorはvendor側log/configとAzure側evidenceを突き合わせる。

通信や判断の流れを追う
On-premisesVPN / ProviderGateway / HubVNetWorkload

Control plane と data plane

Control planeGateway/connection/IPsec policy/BGP/diagnostic settingsがcontrol plane。
Data planeIKE SA→IPsec SA→encrypted tunnel→route lookup→NSG/UDR→application flowの順でdata planeを追う。

仕組みと設計上の意味

「VPNが落ちた」をIKE failure、tunnel down、route missing、application failureへ分解する。

rekey時だけ切れる場合はlifetime/PFS/traffic selector/MTU等のparameter差を疑う。

BGP establishedでもdata prefixが欠落すれば通信できない。

packet captureは最終手段としてsource/NVA/on-prem deviceを含めた観測点を選ぶ。

Packet / decision path

source→destinationを1本のflowとして固定し、名前解決・routing・security・NAT/service processing・return pathを必要な範囲で順に確認する。

  1. gateway/connection provisioning/health確認。
  2. IKE/IPsec diagnostic log確認。
  3. tunnel metrics/status確認。
  4. BGP peer/learned route確認。
  5. effective route/securityとapplication test確認。

設計判断

判断点推奨理由
Layer orderIKE→IPsec→Tunnel→BGP→Route→Application上位層から推測しない
LogsIKE/Tunnel/Route diagnosticを時刻相関control/data-planeの境界を特定
BGPsessionとprefix受信を別確認Establishedだけで成功扱いしない
Change safetyincident evidence取得後に変更原因消失を防ぐ

確認手順

Azure Portal

  • VPN Gateway → Connections/Monitoring/Diagnostic settingsを確認。
  • BGP peer status/learned routesを確認。
  • Log AnalyticsでIKE/Route/Tunnel categoryを時間軸で相関。

Evidence contract

Identitysubscription / resource group / resource ID / regionを固定。
Before / After同じsource・destination・protocol・portで比較。
Effective state設定値だけでなくeffective route/security/health/logを取得。
Runtimecontrol-plane Succeededとapplication successを分けて判定。
Azure CLI — read-only first
az network vpn-connection show -g <rg> -n <connection> -o jsonc
az network vnet-gateway list-learned-routes -g <rg> -n <gateway> -o table
az network watcher troubleshooting start -g <rg> --resource <connection> --resource-type vpnConnection --storage-account <storage-id> --storage-path <https://account.blob.core.windows.net/container>
PowerShell — read-only first
Get-AzVirtualNetworkGatewayConnection -ResourceGroupName <rg> -Name <connection>
Get-AzVirtualNetworkGatewayLearnedRoute -ResourceGroupName <rg> -VirtualNetworkGatewayName <gateway>

障害切り分け

症状疑う点証拠次の確認
定期的に数分断rekey/DPD/path instabilityIKE/Tunnel logs timestampparameter/ISP path確認
Connected表示なのに片方向return route/NSG両端route + flow evidencereverse path修正
BGP flaptransport/ASN/timerBgpConnected/Disconnected eventspeer config照合
特定sizeだけ失敗MTU/fragmentationpacket captureMSS/MTU path確認

変更・rollback

  • incident中に設定変更を乱発せずlogsを先に保存。
  • IPsec parameter変更は両端一致を保証。
  • rollbackはshared key/policy/BGP routeを一括してknown-goodへ戻す。
  • 復旧後は同じfailure条件(rekey/片系停止等)を再試験。

Official sources