0
votes

I'm getting error in Azure DevOps Release pipeline - Windows Powershell is in non Interactive mode. 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"): 
1

1 Answers

3
votes

During the pipeline, you can't use the interactive mode in PowerShell.

Add the flag -Force, it's running the cmdlet without prompting for confirmation.

Start-AzureRmDataFactoryV2Trigger -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TriggerName "ScheduledTrigger" -Force

More info you can find here.