Use Docker to creadte an quick and up to date az cli alias on Linux.
Create local container with lastest image
docker run -it --name azure-cli -v $HOME/.azure/:/root/.azure mcr.microsoft.com/azure-cli
Create az alias for azure-cli
echo "alias az='docker start -i azure-cli'" >> ~/.bashrc
source ~/.bashrc
Test : Type az
on terminal must display bash promt. Inside it, type az --version
must display cli version infos.
az login
Azure config folder will be created $HOME/.azure
and will be mounted inside azure-cli
every time it started.