About
The Azure cli command utility. The Azure portal (web-based admin panel) at the command line.
- The CLI 1.0 start with azure.
- The CLI 2.0 uses az.
Articles Related
Installation
2.0
Microsoft Installer
See Azure CLI 2.0 installation.
- With the msi
where az
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd
Docker
- With Docker https://hub.docker.com/r/microsoft/azure-cli/
# Run it and get a bash prompt
docker run -it microsoft/azure-cli:latest
# Login in Azure
# Commit the container
docker commit containerName gerardnico/azure-cli:latest
# Then mount the actual directory
SOURCE_MOUNT_POINT=$(cygpath -u $(readlink -f .))
docker run \
-it \
--rm \
--mount type=bind,source=/$SOURCE_MOUNT_POINT,target=/wd \
gerardnico/azure-cli:latest
# Then:
apk update
apk add curl
curl -L https://github.com/sequenceiq/docker-alpine-dig/releases/download/v9.10.2/dig.tgz|tar -xzv -C /usr/local/bin/
apk add sshpass
1.0
Node
npm install -g azure-cli
azure --help
Docker
- See https://hub.docker.com/r/microsoft/azure-cli/. The last known tag of the old client is 0.10.17
docker run -it microsoft/azure-cli:0.10.17
Support
- C:\Users\username\.azure\azure.err