【问题标题】:Azure Dev ops Release deployment failed due to 'Get-AzDataFactoryV2Trigger' error由于“Get-AzDataFactoryV2Trigger”错误,Azure Dev ops Release 部署失败
【发布时间】:2021-12-09 00:51:09
【问题描述】:

'Get-AzDataFactoryV2Trigger' 未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。

PowerShell 以代码“1”退出。

尽管我收到此错误,但已安装所有 az 模块

【问题讨论】:

  • 您使用的是哪个版本的 powershell ?同时你可以参考这个social.msdn.microsoft.com/Forums/en-US/…
  • 你能分享你正在使用的PowerShell版本和脚本吗?
  • PSVersion 5.1.14393.4583 @NadineRaiss

标签: azure powershell azure-devops azure-pipelines azure-deployment


【解决方案1】:

您需要更新您的 PowerShell 版本。查看Get-AzDataFactoryV2Trigger 函数的文档。

这是您可以使用最新版本的 PowerShell 任务:

 - task: AzurePowerShell@4
   displayName: 'Execute script'
   inputs:
     azureSubscription: '${{ parameters.azConnection }}'
     ScriptType: InlineScript
     Inline: |     
       ##code
     azurePowerShellVersion: LatestVersion

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-16
    • 2022-08-20
    • 2019-12-19
    相关资源
    最近更新 更多