Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A command that prompts the user failed #902

Closed
paulbatum opened this issue Nov 9, 2016 · 4 comments
Closed

A command that prompts the user failed #902

paulbatum opened this issue Nov 9, 2016 · 4 comments

Comments

@paulbatum
Copy link
Member

Ported from: Azure/Azure-Functions#53

@ariel1974 asked:

When I'm trying to delete a file from a File storage account I'm getting this:

Exception while executing function: Functions.TimerTriggerPowerShell1. Microsoft.Azure.WebJobs.Script: PowerShell script error. System.Management.Automation: A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the following message: Are you sure you want to perform this action?
Performing the operation "Remove-AzureStorageFile" on target "drawings/7.filtered.json".

Any idea what I'm missing?

@paulbatum paulbatum added this to the backlog milestone Nov 9, 2016
@paulbatum
Copy link
Member Author

Hey @tohling, do you know how to write scripts that call commands that show prompts? Is there some way to suppress the prompt?

@tohling
Copy link
Contributor

tohling commented Nov 9, 2016

Try adding -Confirm:$false or -Force to the end of the command.

@ariel1974
Copy link

thank you very much @tohling , i'll try that and let you know. The weird part with this issue though, it doesn't happened in other storage account i've got, and the same script successfully deletes all files there.

@femalemarvel365
Copy link

Did that work?

@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants