Skip to content

Instantly share code, notes, and snippets.

@undernewmanagement
Created December 28, 2015 12:41
Show Gist options
  • Save undernewmanagement/e5164afbe0ee240a48dc to your computer and use it in GitHub Desktop.
Save undernewmanagement/e5164afbe0ee240a48dc to your computer and use it in GitHub Desktop.
Get IP address of a VM using azure cli
azure vm show <RG_GROUP> <VM_NAME> |grep "Public IP address" | awk -F ":" '{print $3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment