diff --git a/src/azure-cli-core/azure/cli/core/parser.py b/src/azure-cli-core/azure/cli/core/parser.py index a0c194ffba2..12d25aa3cf2 100644 --- a/src/azure-cli-core/azure/cli/core/parser.py +++ b/src/azure-cli-core/azure/cli/core/parser.py @@ -497,8 +497,8 @@ def _check_value(self, action, value): # pylint: disable=too-many-statements, t else: # `command_source` indicates command values have been parsed, value is an argument parameter = action.option_strings[0] if action.option_strings else action.dest - error_msg = "{prog}: '{value}' is not a valid value for '{param}'.".format( - prog=self.prog, value=value, param=parameter) + error_msg = "{prog}: '{value}' is not a valid value for '{param}'. Allowed values: {choices}.".format( + prog=self.prog, value=value, param=parameter, choices=', '.join([str(x) for x in action.choices])) candidates = difflib.get_close_matches(value, action.choices, cutoff=0.7) az_error = InvalidArgumentValueError(error_msg)