|
16 | 16 | get_three_state_flag) |
17 | 17 | from azure.cli.command_modules.rdbms.validators import configuration_value_validator, validate_subnet, \ |
18 | 18 | tls_validator, public_access_validator, maintenance_window_validator, ip_address_validator, \ |
19 | | - retention_validator, firewall_rule_name_validator, validate_identity, validate_byok_identity, validate_identities, \ |
20 | | - virtual_endpoint_name_validator, node_count_validator |
| 19 | + retention_validator, validate_identity, validate_byok_identity, validate_identities, \ |
| 20 | + virtual_endpoint_name_validator, node_count_validator, postgres_firewall_rule_name_validator |
21 | 21 | from azure.cli.core.local_context import LocalContextAttribute, LocalContextAction |
22 | 22 |
|
23 | 23 | from .randomname.generate import generate_username |
@@ -796,7 +796,7 @@ def _flexible_server_params(command_group): |
796 | 796 | for scope in ['create', 'delete', 'show', 'update']: |
797 | 797 | argument_context_string = '{} flexible-server firewall-rule {}'.format(command_group, scope) |
798 | 798 | with self.argument_context(argument_context_string) as c: |
799 | | - c.argument('firewall_rule_name', id_part='child_name_1', options_list=['--rule-name', '-r'], validator=firewall_rule_name_validator, |
| 799 | + c.argument('firewall_rule_name', id_part='child_name_1', options_list=['--rule-name', '-r'], validator=postgres_firewall_rule_name_validator, |
800 | 800 | help='The name of the firewall rule. If name is omitted, default name will be chosen for firewall name. The firewall rule name can only contain 0-9, a-z, A-Z, \'-\' and \'_\'. Additionally, the name of the firewall rule must be at least 3 characters and no more than 128 characters in length. ') |
801 | 801 | c.argument('end_ip_address', options_list=['--end-ip-address'], validator=ip_address_validator, |
802 | 802 | help='The end IP address of the firewall rule. Must be IPv4 format. Use value \'0.0.0.0\' to represent all Azure-internal IP addresses. ') |
|
0 commit comments