diff --git a/azext_iot/_params.py b/azext_iot/_params.py index d7a6dcd5e..2cf6bafed 100644 --- a/azext_iot/_params.py +++ b/azext_iot/_params.py @@ -104,11 +104,15 @@ def load_arguments(self, _): validator=mode2_iot_login_handler, help="This command supports an entity connection string with rights to perform action. " 'Use to avoid session login via "az login". ' - "If both an entity connection string and name are provided the connection string takes priority.", + "If both an entity connection string and name are provided the connection string takes priority. " + "Required if --hub-name is not provided.", + arg_group="IoT Hub Identifier" ) context.argument("resource_group_name", arg_type=resource_group_name_type) context.argument( - "hub_name", options_list=["--hub-name", "-n"], arg_type=hub_name_type + "hub_name", options_list=["--hub-name", "-n"], arg_type=hub_name_type, + help="IoT Hub name. Required if --login is not provided.", + arg_group="IoT Hub Identifier" ) context.argument( "device_id", options_list=["--device-id", "-d"], help="Target Device."