Retrieving Public IP address is currently not working and confirmed by Microsoft. Do we have an eta for this feature to be fixed?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@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.
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 version2019-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.