azure-cli on Bash Windows 10

Published on Wednesday, August 10, 2016

Once you get the Anniversary Update for Windows 10 you will be able to run Bash on Windows provided by Ubuntu. Very excited about this! It will make managing Linux machines that much easier.

Installing azure-cli

  1. Install NPM - sudo apt-get install -y nodejs

  2. Install azure-cli - npm install -g azure-cli

  3. Create symbolic link between nodejs and node - sudo ln -s /usr/bin/nodejs /usr/bin/node

    Note: The reason for step 3 is that Ubuntu installs nodejs rather than node, since the azure-cli is programmed to use node, you will get an error without this link

And you are done. After running azure you should see this...

azure-cli start screen