Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The public IP address can not be retrieved through the local metadata api #44314

Closed
dariuszSki opened this issue Dec 9, 2019 · 5 comments
Closed

Comments

@dariuszSki
Copy link

dariuszSki commented Dec 9, 2019

I can not retrieve the public IP through local metadata api endpoint.According to th eazure docs, I should.

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service#metadata-apis

here is what I get in my VM when I run "curl -H Metadata:true "http://169.254.169.254/metadata/instance/network?api-version=2019-06-04" | jq"

[nfadmin@azuredemoapp ~]$ curl -H Metadata:true "http://169.254.169.254/metadata/instance/network?api-version=2019-06-04" | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 193 100 193 0 0 43263 0 --:--:-- --:--:-- --:--:-- 48250 { "interface": [ { "ipv4": { "ipAddress": [ { "privateIpAddress": "10.0.8.5", "publicIpAddress": "" } ], "subnet": [ { "address": "10.0.8.0", "prefix": "24" } ] }, "ipv6": { "ipAddress": [] }, "macAddress": "000D3A328570" } ] } [nfadmin@azuredemoapp ~]$


Document Details

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

@ManojReddy-MSFT
Copy link
Member

@dariuszSki We are looking into this and will get back to you shortly.

@VikasPullagura-MSFT
Copy link
Contributor

@dariuszSki Only Public IP addresses with basic SKU are available when using instance metadata service IMDS. Standard SKU is not supported. Please check this document for this information.

Can you check which SKU are you using?

@VikasPullagura-MSFT
Copy link
Contributor

@dariuszSki Any update on the issue?

@dariuszSki
Copy link
Author

Yes, the sku is set to standard. It works as highlighted in the document. Thank you for the help.

Copy link
Contributor

#30370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants