【发布时间】:2018-08-21 19:34:04
【问题描述】:
我正在尝试在 Azure 开发测试实验室的现有 VM 上使用 Run Powershell 工件下载和运行 PowerShell 脚本(从 blob 存储)。
我收到以下错误,我认为我在做一些愚蠢的事情。
& : The term './script.ps1' 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.
At line:1 char:3
+ & ./script.ps1
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./script.ps1:String) [], Comman
dNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
这是我的设置...
我还尝试了 JSON 数组语法,它给出了相同的结果,以及一个无效的 URL,它给出了 404 错误,所以看起来好像它正在下载我的脚本,但后来找不到它。
【问题讨论】:
标签: azure powershell azure-blob-storage artifact azure-devtest-labs