[英]How to enable PowerShell Interactive mode in Azure DevOps Azure Powershell Task?
I'm getting error in Azure DevOps Release pipeline - Windows Powershell is in non Interactive mode.我在 Azure DevOps 发布管道中遇到错误 - Windows Powershell 处于非交互模式。 Read and Prompt Functionality is not available.
阅读和提示功能不可用。
while running the command -在运行命令时 -
Start-AzureRmDataFactoryV2Trigger -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TriggerName "ScheduledTrigger"
Confirm
Are you sure you want to start trigger 'ScheduledTrigger' in data factory 'WikiADF'?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
During the pipeline, you can't use the interactive mode in PowerShell.在流水线的过程中,PowerShell中的交互模式是不能使用的。
Add the flag -Force
, it's running the cmdlet without prompting for confirmation.添加标志
-Force
,它会在不提示确认的情况下运行 cmdlet。
Start-AzureRmDataFactoryV2Trigger -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TriggerName "ScheduledTrigger" -Force
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.