Azure-docs: Public IP address

Created on 22 Jun 2018  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

Retrieving Public IP address is currently not working and confirmed by Microsoft. Do we have an eta for this feature to be fixed?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cxp in-progress needs-more-info product-question triaged virtual-machines-windowsvc

Most helpful comment

This is still a current issue. Just tested the documented steps and they found just empty string for the public IP address for both of:
curl -H Metadata:true "http://169.254.169.254/metadata/instance/network?api-version=2017-08-01"
and
curl -H Metadata:true "http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-08-01&format=text"

Also tried with the latest supported version (as reported by the API, this is 2019-08-15, which is one behind the documented latest version 2019-11-01 - documented version gives an error):
curl -H Metadata:true "http://169.254.169.254/metadata/instance/network?api-version=2019-08-15"
This also returned "publicIpAddress":""

May want to update docs while this is broken, as docs go out of their way to say how to find the public IP, but that doesn't work.

Tested on a marketplace VM (though I don't think that should matter). I will use a workaround.

All 4 comments

@neilghuman what do you mean by not working? What error are you seeing? What did support say regarding this? Can you share the ticket number?

I will close this out but if you feel you need more information please just let me know.

Hello Micah,
In terms of not working, when the command is ran, it returns an empty string in terms of Public Ip address. The Azure Product group is aware of this issue and is currently working on a fix. From PG:

We are actively working on getting this fix, our current timelines from engineering team is 10/15 for Public regions, National Clouds by end of the year.

Important note, this will enable Standard VIPs to be access from IMDS, Basic VIPs are already supported.

Thank you and go ahead and close this thread.

This is still a current issue. Just tested the documented steps and they found just empty string for the public IP address for both of:
curl -H Metadata:true "http://169.254.169.254/metadata/instance/network?api-version=2017-08-01"
and
curl -H Metadata:true "http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-08-01&format=text"

Also tried with the latest supported version (as reported by the API, this is 2019-08-15, which is one behind the documented latest version 2019-11-01 - documented version gives an error):
curl -H Metadata:true "http://169.254.169.254/metadata/instance/network?api-version=2019-08-15"
This also returned "publicIpAddress":""

May want to update docs while this is broken, as docs go out of their way to say how to find the public IP, but that doesn't work.

Tested on a marketplace VM (though I don't think that should matter). I will use a workaround.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ponant picture Ponant  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments