Dmitry
Dmitry

Reputation: 694

Azure, Windows 8.1, Docker: az commands does not work in docker toolbox

I did:

Actual result: azure commands, like az acr, are normally running under cmd/powershell, but not running just in docker quickstart terminal:

$ az
bash: az: command not found

Expected result: I want to have ability to run "az" commands family just in docker toolbox ("Docker Quickstart Terminal") on windows 8.

How to achieve this?

Upvotes: 1

Views: 690

Answers (2)

Jason Ye
Jason Ye

Reputation: 13974

The issue is because the azure cli 2.0 is installed in location, and this path isn't added to the PATH variable.

So you should add the PATH to windows Environment Variables -> Path.

Here is my path:

enter image description here

Hope this helps.

Upvotes: 0

Dmitry
Dmitry

Reputation: 694

I found solution - using alias, e.g.

alias az='"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -Im azure.cli'

If You have better variants - please add. I will close question as answered in few days

Upvotes: 1

Related Questions