Yesterday I blogged about managing Microsoft Azure using a Docker Container with Azure CLI 1.0 and today I’ll how to use Azure CLI 2.0.
Azure CLI vs Azure CLI 2.0
To get started and download the Azure CLI 2.0 Docker Container, I’ll use the cmdlet below.
docker pull azuresdk/azure-cli-python
To run the container, I’ll use the docker command below:
docker run -it azuresdk/azure-cli-python
As you can see below, Bash 4.3 Is in use
To view all the Azure CLI 2.0 command, I’ll run the line below.
To log in to the portal, I’ll use the line below
And the best thing about Azure CLI 2.0 and Payton Is that I can use the Tab key to check which command is available
Azure CLI 2.0 Is a much better command line tool for Azure management compared to CLI 1.0.