diff --git a/src/azure-cli/azure/cli/command_modules/network/_params.py b/src/azure-cli/azure/cli/command_modules/network/_params.py index 217c434b933..39ec6aab0ad 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_params.py +++ b/src/azure-cli/azure/cli/command_modules/network/_params.py @@ -524,7 +524,7 @@ def load_arguments(self, _): c.argument('rule_group_name', options_list='--group-name', help='The name of the web application firewall rule set group.') - c.argument('rules', nargs='+', help='List of rules that will be disabled.') + c.argument('rules', nargs='+', help='List of rules that will be disabled. If provided, --group-name must be provided too') with self.argument_context('network application-gateway waf-policy managed-rule exclusion', min_api='2019-09-01') as c: @@ -1902,9 +1902,9 @@ def load_arguments(self, _): register_providers() for scope in ['private-link-resource', 'private-endpoint-connection']: with self.argument_context('network {} list'.format(scope)) as c: - c.argument('name', required=False, help='Name of the resource', options_list=['--name', '-n']) - c.argument('resource_provider', required=False, help='Type of the resource.', options_list='--type', arg_type=get_enum_type(TYPE_CLIENT_MAPPING.keys())) - c.argument('resource_group_name', required=False) + c.argument('name', required=False, help='Name of the resource. If provided, --type and --resource-group must be provided too', options_list=['--name', '-n']) + c.argument('resource_provider', required=False, help='Type of the resource. If provided, --name and --resource-group must be provided too', options_list='--type', arg_type=get_enum_type(TYPE_CLIENT_MAPPING.keys())) + c.argument('resource_group_name', required=False, help='Name of resource group. If provided, --name and --type must be provided too') c.extra('id', help='ID of the resource', validator=process_private_link_resource_id_argument) for scope in ['show', 'approve', 'reject', 'delete']: with self.argument_context('network private-endpoint-connection {}'.format(scope)) as c: