Azure:使用多个版本的CLI

发布于 2025-02-02 17:31:50 字数 458 浏览 2 评论 0 原文

对于一些依赖性原因与Terraform(内部使用Azure Cli)。我正在尝试在机器中使用多种版本的Azure CLI。 ,例如2.30.0,2.22.0

取决于我们计划在需要时更改版本的需求。但是我找不到一种更改Azure CLI版本的方法。

我可以找到一种安装旧版本可以通过卸载较新版本并安装旧版本来完成。但是我不想卸载它,我想保留版本并在需要时使用其他版本。

这在Azure-CLI中可以吗?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清醇 2025-02-09 17:31:50
  • 据我所知,根据 Microsoft文档您不能在同一系统中使用 azure cli 的不同版本。
  • 您已经知道您需要 需要卸载较旧的并在需要时安装较新的。
  • 按照 一次使用多个版本。
  • 您可以提出功能请求和< a href =“ https://learn.microsoft.com/en-us/answers/products/” rel =“ nofollow noreferrer”>支持票用于进一步使用。
  • 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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文