An Azure service that is used to provision Windows and Linux virtual machines.
Run the diagnostic-only IMDS Verification Tool together with a circular Windows packet trace during the next occurrence, then correlate the packet outcome with Azure Resource Health and platform-network diagnostics for the same UTC interval.
1. Establish an independent IMDS result
From Azure portal → Virtual machine → Operations → Run command, select Windows_IMDSValidation, and then select Run. Without -AutoFix, this is diagnostic only and does not alter certificates, firewall policy, or other security controls. Its first phase tests TCP connectivity to [IP Address]:80; later phases test attestation and certificate handling.^1^
Run it:
- Once while the application is healthy, to obtain a baseline.
- As soon as possible after an application timeout.
- Without
-AutoFix, because the reported failure is before HTTP response headers and the objective is evidence collection, not certificate repair.
Interpretation:
- Phase 1 fails concurrently: the problem is below the HTTP response layer.
- Phase 1 succeeds while the process repeatedly times out: investigate process-specific WFP/security filtering or client behavior.
- Phase 1 and attestation succeed: this does not explain an earlier transient; use the continuous trace below.
IMDS is HTTP-only, never leaves the Azure host, and requires proxy bypass plus Metadata: true; the request configuration already satisfies those requirements.^2^
2. Capture the failing TCP exchange with Pktmon
On Windows Server 2019 version 1809 or later, Pktmon is an in-box tool that can identify packet propagation and local drop reasons. Use its default circular logging so it can remain armed without unbounded file growth.^3^
From an elevated prompt:
pktmon filter remove
pktmon filter add help
# Add supported filters for destination [IP Address] and TCP port 80.
pktmon start -c
# Leave running until the existing application records its timeout.
pktmon counters
pktmon stop
pktmon etl2txt PktMon.etl
The exact filter switches vary by the Pktmon version, so use pktmon filter add help rather than assuming syntax. Preserve the original ETL and record:
- UTC start/stop and application timeout times.
- Process ID and local ephemeral port, if logged by the application.
-
pktmon countersoutput. - Any
DropReasonandDropLocation.
Pktmon is the preferred first packet-loss diagnostic because it can attribute local packet loss to Windows stack components. If inconclusive, collect the more verbose Internet Client ETW trace:^4^
netsh trace start scenario=InternetClient
rem Reproduce or wait for one bounded application attempt.
netsh trace stop
netsh trace convert NetTrace.etl
Classify the exchange:
- No outbound SYN: guest process, socket, or filtering path.
- Pktmon/WFP local drop: guest-side filtering or resource problem; the drop reason identifies the next component.
- SYN retransmissions with no SYN-ACK and no local drop: evidence is consistent with loss beyond the observable guest stack, but does not by itself prove Azure host failure.
- TCP handshake completes, request leaves, but no HTTP bytes return: preserve the trace for Azure Support.
- HTTP status appears: this is no longer the reported header-timeout case; inspect the status, including documented IMDS
429,410, or500responses.^2^
3. Capture WFP decisions without disabling policy
A limited firewall-rule review does not cover every Windows Filtering Platform provider. For a reproducible occurrence:
netsh wfp capture start keywords=19
rem Allow the existing operation to run once.
netsh wfp capture stop
Inspect wfpdiag.cab → wfpdiag.xml for FWPM_NET_EVENT_TYPE_CLASSIFY_DROP, matching destination [IP Address], port 80, and the executable. The event includes the responsible filter information.^5^
For sporadic failures, enable WFP packet-drop auditing before the observation period:
auditpol /set /subcategory:"Filtering Platform Packet Drop" /success:enable /failure:enable
netsh wfp show state
Correlate Security log drop events by UTC, destination, port, and filter ID; use wfpstate.xml to map the ID to its rule or provider.^6^
4. Correlate Azure host evidence
For the exact UTC window:
- Open VM → Resource health → Health history. Resource Health retains 30 days and can later publish an Azure platform RCA.^7^
- Open Service Health and check service issues, advisories, and maintenance for the subscription and Sweden Central.^8^
- Open VM → Diagnose and solve problems:
- Run the Instance Metadata Service diagnostic.
- Run Azure insights for Platform Network Validation if offered for this VM.
- Review VM → Monitoring → Metrics for host availability and network signals around the same interval. Host metrics are collected by default; guest metrics require enhanced monitoring.^9^
A healthy Resource Health record does not disprove an IMDS-only transient; it means Azure did not register a resource-level availability event.
5. Escalation package
If traces show outbound SYN/request traffic, no local drop, and no response, open an Azure support request under the VM’s Instance Metadata Service problem category. Provide:
- VM resource reference through the support case—not in a public Q&A post.
- Region, OS version, and exact UTC windows.
- IMDS tool output.
- Pktmon/NetTrace ETL files and WFP result.
- Local source ports, TCP sequence summary, and attempt durations.
- Resource Health, Service Health, and platform-network diagnostic results.
- Confirmation that proxy bypass,
Metadata: true, retry limits, and application availability behavior remained unchanged.
That evidence gives Azure Support the timestamps needed to correlate guest-observed traffic with host and top-of-rack telemetry that is not exposed inside the VM.
References
- Azure VM Instance Metadata Service verification tool
- Azure Instance Metadata Service
- Pktmon command formatting
- Diagnose packet loss
- Troubleshooting UWP App Connectivity Issues
- Troubleshoot TCP/IP connectivity
- Project Flash - Use Azure Resource Health to monitor Azure Virtual Machine availability
- Azure Service Health FAQ
- Monitor virtual machines in Azure