Skip to content

Instantly share code, notes, and snippets.

@codingoutloud
Created March 5, 2014 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingoutloud/27fba9ffc35678774c9a to your computer and use it in GitHub Desktop.
Save codingoutloud/27fba9ffc35678774c9a to your computer and use it in GitHub Desktop.
Create an Ubuntu VM on Windows Azure using the XPLAT (cross platform) CLI (command-line interface). See this whitepaper for more detail (note that this code is from that whitepaper, though I am also the original creator of the code since I created it for the whitepaper): http://research.microsoft.com/en-us/projects/azure/windows-azure-for-linux-…
sudo npm install azure-cli –g
openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 \
-keyout example1.key \
-out example1.pem
azure vm image list
azure vm create --location "West US" --ssh 22 --ssh-cert ./example1.pem --no-ssh-password exampleVM1 b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-13_04-amd64-server-20130824-en-us-30GB exampleUserName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment