With BrewCask:
brew cask install azure-cliQuickly access to Microsoft Azure and download settings file:
azure account downloadImport that file:
azure account import ROUTE_TO_FILE
# Example:
azure account import /user/Desktop/XXXXXXX-x-x-xxxx-credentials.publishsettingsCheck it with:
azure account listFind Ubuntu LTS image:
azure vm image list | grep UbuntuLet say we will use b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_3-LTS-amd64-server-20150805-en-us-30GB:
# Make sure to change <name> to your server name, <username> <password> to log into it.
azure vm docker create -e 22 -l "West US" <name> "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_3-LTS-amd64-server-20150805-en-us-30GB" <username> <password>