Why does Azure virtual machine with dual stack network is not able to reach IMDS server 169.254.169.254

Mahudeeswaran Palanisamy 0 Reputation points
2025-01-07T18:47:45.43+00:00

We have our appliance image which is basically a linux machine deployed using Azure SDK (Java), the virtual machine is configured with two network interfaces, both of which is connected to dual stack subnet. After the node is deployed and booting up, as part of cloud-init, it connects to IMDS server to get the metadata, but the request is timing out, logs below.

[ 13.248532] cloud-init[493]: /usr/lib/python3/dist-packages/requests/init.py:87: RequestsDependencyWarning: urllib3 (2.2.3) or chardet (4.0.0) doesn't match a supported version!

[ 13.255596] cloud-init[493]: warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "

[ OK ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.

[ 13.464770] cloud-init[619]: Cloud-init v. 23.1.2-0ubuntu0~22.04.1 running 'init-local' at Mon, 16 Dec 2024 06:05:28 +0000. Up 13.44 seconds.

***[ 45.738883] cloud-init[619]: 2024-12-16 06:06:00,320 - azure.py[WARNING]: Failed to fetch metadata from IMDS: HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /metadata/instance?api-version=2021-08-01&extended=true (Caused by ConnectTimeoutError(

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,322 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 5,281 Reputation points Microsoft Employee
    2025-01-07T21:58:23.95+00:00

    Hi @Mahudeeswaran Palanisamy , I understand you have an appliance with dual NIC (network interface card) deployed as Azure VM and it couldn't reach IMDS (Instance Metadata Service).

    Please note: IMDS requests must be sent using VM's primary NIC and primary IP, and DHCP must be enabled.

    Reference: Azure Instance Metadata Service

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.