Home > other >  Azure: CLI using multiple Versions
Azure: CLI using multiple Versions

Time:05-31

For some Dependencies reason with Terraform (using azure cli internally). I'm trying to use multiple versions of azure cli in my machine. e.g, 2.30.0 ,2.22.0

Depends on the need we are planning to change the version whenever required. But I couldn't find a way to change the azure cli version.

I can find a way to install older version but that has to be done by uninstalling the newer version and installing the older version. But I don't want to uninstall it, I want to keep the version(s) and use the different version whenever needed.

Is this possible in azure-cli ?

CodePudding user response:

  • As far as I know and as per the Microsoft Documentation you can't use different versions of Azure CLI in same system at a time.
  • As you already know you need to uninstall the older and install the newer when needed.
  • As suggested by CSharpRocks you can use containers to use multiple versions at a time.
  • You can Raise a Feature request and support ticket for further usage.
  • Related