Created
November 4, 2018 20:35
-
-
Save rsponholtz/9e8a276ca6e2662b4ccaebe81d016082 to your computer and use it in GitHub Desktop.
get private ip address from azure metadata service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipaddr=`curl -H Metadata:true "http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/privateIpAddress?api-version=2017-04-02&format=text"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment