-
Notifications
You must be signed in to change notification settings - Fork 231
fix support default selection for prompt param #5200
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
fix support default selection for prompt param #5200
Conversation
Nothing blocking, just left a few minor comments |
…fault-selection-for-prompt-param
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSIDocumentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This change allows users to define a default option (or value) for input parameters and use it when AZD prompt for it.
The use case is to force users to input/select values for parameters, making them aware of the selection, but controlling what AZD should highlight as the default option during the prompt. This is different from setting a default value directly for the parameter in bicep, which would skip the prompt.
This change also enables running with
--no-prompt
to use the default values.Example. For a parameter model like:

by using
AZD would prompt like:

And if user runs
azd up --no-prompt
, AZD would take the default value during the prompt automatically.