Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 YAML 中设置此值?这是来自 Azure devops 管道
编辑:在同一 UI(首选 PowerShell 版本)下有一个 powershell 版本,问题不在于那个。
您可以将其设置为,
steps: - task: AzurePowerShell@4 displayName: 'Azure PowerShell script: FilePath' inputs: azureSubscription: 'Azure Demo' preferredAzurePowerShellVersion: 1.0.0
但是,您应该能够通过单击 YAML 来查看相关的 YAML 代码
它设置在“@4”中
- task: AzurePowerShell@4