代码之家  ›  专栏  ›  技术社区  ›  Declan McNulty

在Azure DevOps管道的Azure Powershell步骤中引发的“cmdlet”错误中,术语“***”未被识别为名称

  •  0
  • Declan McNulty  · 技术社区  · 6 年前

    我的发布管道中有一个Azure Powershell步骤,它调用Invoke RestMethod cmdlet来调用kudu API。

    在创建步骤时,将从可用订阅列表中选择“我的Azure订阅”,并使用此进行身份验证。

    enter image description here

    但是,对于以后的每个版本,现在我都收到错误 ##[error]The term '***' is not recognized as the name of a cmdlet, function, script file, or operable program.

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  0
  •   Daniel Mann    6 年前

    你的剧本好像有问题。 *** 用于屏蔽机密变量,因此脚本可能正在尝试运行变量内容的地方执行某些操作。也许有点像 &$TenantId

    推荐文章