Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/azure-cli-core/azure/cli/core/commands/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def get_location_type(cli_ctx):
options_list=('--location', '-l'),
completer=get_location_completion_list,
type=get_location_name_type(cli_ctx),
help="Location. You can configure the default location using `az configure --defaults location=<location>`",
help="Location. Run `az account list-locations --output table` to get a list of available location names. "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be less verbose and keep this consistent with the normal text:
Values from: az account list-locations.

The right place for this is the populator-commands field, but we can't do that because you can't set it programmatically. Still, we should keep it as concise.

"You can configure the default location using `az configure --defaults location=<location>`.",
metavar='LOCATION',
configured_default='location')
return location_type
Expand Down