解决Azure CLI vm quick-create command failed

 

在安装Azure CLI 以后,火烧眉毛的想用vm quick-create command 建立一台虚拟机。结果遇到以下图中的错误ssh

p_w_picpath

从错误提示中能够看出是缺乏ssh file致使,ide

解决办法:ui

------------------------------------------------------es5

ssh-keygen \  
-t rsa \    
-b 2048 \    
-C "ahmet@myserver" \    
-f ~/.ssh/id_rsa \    
-N mypasswordserver

-----------------------------------------------------blog

将以上分割线以内的内容copy,直接在终端中粘贴运行便可get

p_w_picpath

再次运行vm quick-create command ,遇到以下错误虚拟机

p_w_picpath

从错误提示看,是 Microsoft.Network 没有registered所至it

运行azure provider register 命令进行registeredio

p_w_picpath

还能够运行azure provider list查看还有哪些服务没有registered,一并registered

以后再运行vm quick-create command

p_w_picpath

建立成功。

相关文章
相关标签/搜索