【发布时间】:2021-10-18 11:19:02
【问题描述】:
我尝试运行“az version”的简单命令,该命令将使用运行命令脚本在 VM 上执行,但出现此错误:The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
但是当我从 VM 运行此命令时,我将它与远程桌面连接连接它可以工作,并且我会获得包含所有详细信息的“az 版本”。 我还在 VM 中安装了 AZ 模块。
我应该怎么做才能从运行命令脚本中操作“az”命令?
【问题讨论】: