question

rsmitty-1887 avatar image
0 Votes"
rsmitty-1887 asked ·

Public IP not available via metadata

Hello, I think I've encountered a bug or issue with the metadata service in Azure. I'm trying to curl the metadata endpoint to fetch my public IP I associated with a linux VM at boot time. This behavior works fine with a "basic" SKU public IP. However, if I try this with a "standard" SKU IP, the public IP is never listed. Here is the endpoint I've been testing against: http://169.254.169.254/metadata/instance/network/interface?api-version=2019-06-01

Unsure if this is a legit bug or if there's a difference in behavior between the two types of IPs that I should be expecting.

azure-virtual-machines
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is there an update? Please 'Accept as answer' if the answer provided below helped you, so that it can benefit others in the community.

0 Votes 0 · ·

1 Answer

jakaruna-MSFT avatar image
0 Votes"
jakaruna-MSFT answered ·

Hi, Standard sku public ips are not shown in metadata

Reference: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-ip-addresses-overview-arm#standard

Actual not from the documnet.

Note

Only Public IP addresses with basic SKU are available when using instance metadata service IMDS. Standard SKU is not supported.

You can submit a request here if you need this feature. Dev teams may take this into their backlog

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.