• 欢迎订阅我的Youtube频道
  • 欢迎加入我的电报群

az command stop working

软件开发 fennng 1年前 (2018-04-05) 920次浏览 0个评论

/usr/local/bin/az: line 6: python3: command not found


Haven't used az command for a while.
I recently migrated from azure container instance to azure linux VM. Because I have mysql and azure file as docker volume separately, migration is too simple. It's all about a command to start a new docker container. 
Now I am going to stop the old container instance. 
Then my az command gave me above error.
The solution is reinstalling python

[email protected]:~/Downloads > brew uninstall –ignore-dependencies python

Uninstalling /usr/local/Cellar/python/2.7.13... (6,336 files, 86.6MB)

python 3.6.4_2 1 is still installed.

Remove all versions with `brew uninstall –force python`.

[email protected]:~/Downloads > brew update && brew install python

Updated 1 tap (homebrew/core).

==> Updated Formulae

After above two commands. 
My Az command is back

[email protected]:~/Downloads > az

Welcome to Azure CLI!

———————

Use `az -h` to see available commands or go to https://aka.ms/cli.

Telemetry

———

The Azure CLI collects usage data in order to improve your experience.

The data is anonymous and does not include commandline argument values.

The data is collected by Microsoft.

You can change your telemetry settings with `az configure`.

     /

    /      _____   _ _  ___ _

   / /   |_  / | | | '__/ _

  / ____   / /| |_| | | |  __/

 /_/    _/___|__,_|_|  ___|

az login 
then 

az container delete –name wp  –resource-group wpaci

say goodbye to my container instance. I can create it back in seconds if needed.
Feng


峰享技术 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:az command stop working
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址