A VM can't reach `169.254.169.254` (IMDS) and managed identity calls fail.
IntermediateTroubleshootingNetwork Connectivity Errors
Answer
Likely causes → A proxy setting intercepts it (missing NO_PROXY=169.254.169.254), guest firewall, or a custom route in the guest OS.
Diagnose →
curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | head -c 200
env | grep -i proxy
Fix → Add IMDS to NO_PROXY, fix guest firewall/routes.
Prevent → Include IMDS exclusions in proxy configuration standards.
More on Network Connectivity Errors
A VM with a public IP times out on SSH (`ssh: connect to host 20.x.x.x port 22: Connection timed out`).Beginner`nslookup kv-shop.vault.azure.net` from inside the VNet returns a public IP even though a Private Endpoint exists.IntermediateKey Vault returns `Client address is not authorized and caller is not a trusted service.` (ForbiddenByFirewall).BeginnerApplication Gateway returns `502 Bad Gateway` and backend health shows Unhealthy.IntermediateApp Gateway v2 deployment fails or goes unhealthy after a UDR `0.0.0.0/0 → firewall` was added to its subnet.AdvancedTwo VNets peered but VMs can't communicate; peering state shows `Initiated`.Intermediate