如何在YAML中的Azure Pipelines中为AZ CLI指定版本?
我需要在云代理中使用AZ CLI的任务,但需要使用旧版本,如今Windows-2019 Image默认使用的版本是AZ CLI v.2.37.0,但我需要AZ CLI V.2.2.34 .1。
如何在任务中设置此版本?
I need to use a task of az cli in a cloud agent, but need to use an older version, today the version used by default in windows-2019 image is az cli v.2.37.0, but I need az cli v.2.34.1.
How can I set this version in the task ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
bash
任务。您还可以为 pip install 指定版本。
You can install Azure CLI with the
bash
task.You can also specify a version for pip install.