1

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"): 

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks Shayki. Where exactly I need to add this flag?
after -TriggerName "ScheduledTrigger - -TriggerName "ScheduledTrigger -Force
-TriggerName "ScheduledTrigger" -Force *
0

No exactly what was asked - but in case you are looking for a way to see what is going on with you deployment task in a power-shell, you can use -WhatIf

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.