<p>We can use below command to install azure cli on Linux:</p>

<p>curl -L <a href="https://aka.ms/InstallAzureCli" rel="nofollow noreferrer">https://aka.ms/InstallAzureCli</a> | bash</p>

<p>But what if we want to install a specific version of azure cli lets say version 2.0.23 as 2.0.24 has some issue</p>

<p>Please Help!</p>

<p>There is another way you can install and lock the version of CLI.  Say you want to install 2.0.38 on Ubuntu 16.04:
<code>
sudo apt-get install -y azure-cli=2.0.38-1~xenial
echo azure-cli hold | sudo dpkg --set-selection
sudo apt-get upgrade -y
</code></p>
