An Azure network security service that is used to protect Azure Virtual Network resources.
Hello,
After the upgrade to 7.6.8 Azure FTG - SDN communication has been restored!
Thanks to Alex for the help!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I've gotten timeout:
2026-10-24 11:16:47 azd connection timeout: 169.254.169.254:80:169.254.169.254
2026-10-24 11:16:47 azd curl retry
2026-10-24 11:17:02 azd connection timeout: 169.254.169.254:80:169.254.169.254
2026-10-24 11:17:02 azd curl retry
2026-10-24 11:17:17 azd connection timeout: 169.254.169.254:80:169.254.169.254
2026-10-24 11:17:17 azd show instance metadata error.
2026-10-24 11:17:22 azd getting instance metadata
2026-10-24 11:17:32 azd connection timeout: 169.254.169.254:80:169.254.169.254
2026-10-24 11:17:32 azd curl retry
2026-10-24 11:17:47 azd connection timeout: 169.254.169.254:80:169.254.169.254
2026-10-24 11:17:47 azd curl retry
2026-10-24 11:18:02 azd connection timeout: 169.254.169.254:80:169.254.169.254
2026-10-24 11:18:02 azd curl retry
DNS is working
LSPFRGAZU402-FGT-A # execute enter vsys_hamgmt
current vdom=vsys_hamgmt:1
LSPFRGAZU402-FGT-A # execute ping management.azure.com
PING arm-frontdoor-edge-geo.trafficmanager.net (4.150.240.10): 56 data bytes
^C
--- arm-frontdoor-edge-geo.trafficmanager.net ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
LSPFRGAZU402-FGT-A # execute telnet 4.150.240.10 443
Trying 4.150.240.10...
Connected to 4.150.240.10.
Connection closed by foreign host.
There isn't any nsg rule which can block the traffic.
An Azure network security service that is used to protect Azure Virtual Network resources.
Hello,
After the upgrade to 7.6.8 Azure FTG - SDN communication has been restored!
Thanks to Alex for the help!
Hi Dimitrov, Todor & thx for join me at Q&A platform,
logs actually point to a fairly specific issue. FortiGate's Azure daemon (azd) is timing out while trying to reach Azure Instance Metadata Service (IMDS) at 169.254.169.254:80.
That's different from a connectivity problem with management.azure.com.
Your successful TCP connection to 4.150.240.10:443 confirms that the FortiGate can establish a connection to Azure Resource Manager, but it doesn't tell us whether IMDS is reachable. The failed ping isn't particularly meaningful either, as ICMP responses aren't required for ARM API connectivity.
I'd focus on the interface and source IP FortiGate is using to reach IMDS.
Azure requires IMDS requests to originate from the VM's primary NIC and primary IP. This is especially relevant in FortiGate HA deployments, where multiple interfaces, a dedicated HA management VDOM, and additional routing tables can affect locally generated traffic.
Fortinet has documented this exact azd connection timeout: 169.254.169.254:80 error. One known cause is FortiGate sending IMDS requests through an interface other than the Azure VM's primary NIC, typically port1.
Start by checking the actual traffic path:
diagnose sniffer packet any 'host 169.254.169.254 and port 80' 4 0 a
Run this while the azd daemon is attempting to retrieve metadata. Check which interface the packets leave through and whether any responses arrive.
I'd also check the routing table in the VDOM responsible for that traffic:
get router info routing-table all
Then compare the selected interface and source IP against the primary NIC and primary private IP configured on the Azure VM, not just the interface you normally use for HA management.
If the traffic is leaving through the wrong interface, Fortinet documents adding a specific /32 static route for 169.254.169.254 through the Azure gateway associated with port1.
The important part is to use the correct gateway and routing context for your deployment. I wouldn't add that route blindly on a production HA pair, particularly if the two nodes have different interface or management routing configurations.
Also, IMDS uses HTTP port 80, not HTTPS 443. It is a host-local Azure service, so ordinary internet connectivity tests and the absence of blocking NSG rules don't establish that IMDS is working.
Once IMDS connectivity is restored, you can investigate Azure SDN connector authentication, managed identity, or service principal permissions if errors remain. But those aren't the first things I'd change while the daemon can't even retrieve instance metadata.
You can also check the agent state with diagnose debug cloudinit show and capture additional details using diagnose debug application azd -1. Does the packet capture show IMDS traffic leaving through port1, the HA management interface, or another interface? And is this happening on both FortiGate nodes or only the active/primary unit?
That should help determine whether you're dealing with an incorrect local route, source IP selection, or a more specific Azure host connectivity problem.
rgds,
Alex
p.s. if my answer is help - pls mark it as an answer
Based on Fortinet’s investigation, the IMDS issue appears to be related to FortiOS 7.4.13, where the IMDS traffic is incorrectly reverting to the HA management interface (port4). Fortinet confirmed that this behavior is not seen in the 7.6 branch and recommended upgrading to version 7.6.8.
We are therefore planning to upgrade the FortiGate cluster to FortiOS 7.6.8 rather than changing the current ha-direct design. Once the upgrade is completed, we will validate the Azure SDN connector and specifically check whether the IMDS communication is working correctly.
We will provide an update after the upgrade and testing are completed.