Creating a Virtual machine using Azure command line tool for linux

ε祈祈猫儿з 提交于 2019-12-24 15:23:07

问题


Trying to use Azure command line tool for linux,

Below is the screen output when i am trying to create a vm.

path.existsSync is now called fs.existsSync. info: Executing command vm create + Looking up image
+ Looking up cloud service
+ Creating cloud service
+ Retrieving storage accounts
tty.setRawMode: Use process.stdin.setRawMode() instead. Enter VM 'cliusername' password:

At this stage,I entered the password and hit enter but nothing more happens.Also what is the message "tty.setRawMode: Use process.stdin.setRawMode() instead." that is shown on the screen.Plz help !!!


回答1:


After I had discussion with respective team, we figure it out that this problem is related to node.js v0.8 compatibility issue.

It seems that you are running latest node version and the azure tool you installed using following command are not compatible with latest node v0.8:

npm install azure --global

The fix is there in the DEV branch https://github.com/WindowsAzure/azure-sdk-for-node/ NOT in MASTER. The package served from the npm repository is not updated with this.

For the time being you can create package from dev branch, for this:

  1. Download the zip file from https://github.com/WindowsAzure/azure-sdk-for-node/tree/dev
  2. Unzip and from the command prompt switch to extracted directory
  3. Create the package by running the command (Note: This will generate the file azure-0.6.1.tgz):

    npm pack

  4. Install this package by running the command:

    npm install azure-0.6.1.tgz --global

This should solve your problem.



来源:https://stackoverflow.com/questions/11519071/creating-a-virtual-machine-using-azure-command-line-tool-for-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!