You can use Docker to run a standalone Linux container with the Azure CLI pre-installed. Docker gets you started quickly with an isolated environment to run the CLI in. The image can also be used as a base for your own deployments.
$ docker run -it mcr.microsoft.com/azure-cli
Hope this helps!!
If you need to know more about Azure, enroll with Microsoft Azure training course today.