简体   繁体   English

使用适用于Linux的Azure命令行工具创建虚拟机

[英]Creating a Virtual machine using Azure command line tool for linux

Trying to use Azure command line tool for linux, 尝试针对Linux使用Azure命令行工具,

Below is the screen output when i am trying to create a vm. 下面是我尝试创建虚拟机时的屏幕输出。

path.existsSync is now called fs.existsSync . path.existsSync现在称为fs.existsSync info: Executing command vm create + Looking up image 信息:执行命令vm create +查找映像
+ Looking up cloud service +查找云服务
+ Creating cloud service +创建云服务
+ Retrieving storage accounts +检索存储帐户
tty.setRawMode: Use process.stdin.setRawMode() instead. tty.setRawMode:改用process.stdin.setRawMode() Enter VM 'cliusername' password: 输入VM的“用户名”密码:

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." 在此阶段,我输入了密码并按回车键,但没有其他反应。此外,消息“ tty.setRawMode:请使用process.stdin.setRawMode()代替。” that is shown on the screen.Plz help !!! 在屏幕上显示。请帮助!

After I had discussion with respective team, we figure it out that this problem is related to node.js v0.8 compatibility issue. 经过与各自团队的讨论,我们发现该问题与node.js v0.8兼容性问题有关。

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: 似乎您正在运行最新的节点版本,并且使用以下命令安装的azure工具与最新的节点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. 该修补程序位于DEV分支https://github.com/WindowsAzure/azure-sdk-for-node/中,而不是MASTER。 The package served from the npm repository is not updated with this. 从npm存储库提供的软件包不会与此更新。

For the time being you can create package from dev branch, for this: 目前,您可以从dev分支创建软件包,为此:

  1. Download the zip file from https://github.com/WindowsAzure/azure-sdk-for-node/tree/dev https://github.com/WindowsAzure/azure-sdk-for-node/tree/dev下载zip文件
  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): 通过运行命令创建软件包(注意:这将生成文件azure-0.6.1.tgz):

    npm pack NPM包

  4. Install this package by running the command: 通过运行以下命令安装此软件包:

    npm install azure-0.6.1.tgz --global npm install azure-0.6.1.tgz --global

This should solve your problem. 这应该可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Python在Azure中从磁盘创建Linux虚拟机 - Creating a linux virtual machine from disk in azure using python 用于Linux机器上传/下载Azure存储数据的天蓝色命令行工具 - azure command line tool for linux machine to upload/download data to/from Azure Storage RTMP:有没有这样的Linux命令行工具? - RTMP: Is there such a linux command line tool? 使用python自动创建和登录linux虚拟机 - Creating and logging into a linux virtual machine in automation with python 在C / C ++中创建unix / linux命令行工具的最佳实践是什么? - What is the best practice for creating a unix/linux command-line tool in C/C++? python 程序作为 linux 中的命令行工具 - python program as a command-line tool in linux 如何在Azure中连接到在Linux虚拟机上运行的mysql服务器 - how to connect to a mysql server running on a linux virtual machine in azure 为Azure云服务启用HTTPS(运行Linux Server的虚拟机) - Enable HTTPS for Azure cloud service (Virtual Machine running Linux Server) Kurento-WebRTC在Linux虚拟机Azure服务器上不起作用 - Kurento - WebRTC does not work on linux virtual machine azure server Azure上的Linux虚拟机 - 如何应用IP限制 - Linux Virtual Machine at Azure - how to apply IP restriction
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM