ubuntu-wacli-install.sh 862 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. #
  3. # Installs Windows Azure Command-Line Tools on Ubuntu.
  4. #
  5. # http://www.windowsazure.com/en-us/develop/nodejs/how-to-guides/command-line-tools/
  6. # http://www.windowsazure.com/en-us/manage/linux/other-resources/command-line-tools/
  7. # https://github.com/WindowsAzure/azure-sdk-tools-xplat
  8. #
  9. # Note: This script was tested on a brand-new Ubuntu Server 12.04 VM.
  10. #
  11. set -o nounset -o errexit
  12. # Install node from community repository.
  13. # https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint
  14. # http://stackoverflow.com/a/16303380/376366
  15. sudo apt-get update
  16. sudo apt-get install software-properties-common python-software-properties python g++ make
  17. sudo add-apt-repository ppa:chris-lea/node.js
  18. sudo apt-get update
  19. sudo apt-get install nodejs
  20. # Install Windows Azure Command-Line Tools.
  21. sudo npm install azure-cli -g
  22. azure