Azure / Azure/azure-cli

Make "--no-prompt" a global switch and/or environment variable.

Open
#25,321 3 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Azure CLI Team Core customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

az *

a number of times I have been burnt with moving commands from locally executed to being run headlessly in octopus et al and finding that due to missing environment variables or missing substituted values the command is expecting/missing parameters and sits waiting for user input.

In octopus as this is a blocking event you don't get any detail that it is waiting as the stdout is not flushed - it just hangs. it isn't until you run in octopus or in another way do you realise it is missing a parameter.

"--no-prompt" helps - but not all commands support it and it gets added reactively i.e. after we have had an issue and lost time.

**Describe the solution you'd like**

If --no-prompt was global, and ideally set-able an an environment level we could set it one or just as a defacto extra command we use when running in pipelines.

This would enable immediate failure if parameters are missing rather than hanging.

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.