Use the Azure metadata Service to query the Public IP Address of VM

Written by James McDonald

March 24, 2022

curl -s -H Metadata:true | jq -r '.network.interface | .[] | .ipv4.ipAddress | .[] | .publicIpAddress'


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…


If you have Veeam backup failing with the Updating BCD failed with Cannot update SafeBoot flag and SentinelOne is...